Package jadex.binary
Class SimpleDateFormatCodec
- java.lang.Object
-
- jadex.binary.AbstractCodec
-
- jadex.binary.BeanCodec
-
- jadex.binary.SimpleDateFormatCodec
-
- All Implemented Interfaces:
IDecoderHandler
,ITraverseProcessor
public class SimpleDateFormatCodec extends BeanCodec
Codec for encoding and decoding java.text.SimpleDateFormat objects.
-
-
Field Summary
Fields Modifier and Type Field Description protected IBeanIntrospector
intro
Bean introspector for inspecting beans.-
Fields inherited from class jadex.binary.BeanCodec
INTROSPECTOR_CACHE_SIZE
-
-
Constructor Summary
Constructors Constructor Description SimpleDateFormatCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
decode(java.lang.Class<?> clazz, IDecodingContext context)
Add pattern property with applyPattern method.java.lang.Object
encode(java.lang.Object object, java.lang.Class<?> clazz, java.util.List<ITraverseProcessor> preprocessors, java.util.List<ITraverseProcessor> processors, Traverser.MODE mode, Traverser traverser, java.lang.ClassLoader targetcl, IEncodingContext ec)
Add pattern property from toPattern method.boolean
isApplicable(java.lang.Class<?> clazz)
Tests if the decoder can decode the class.-
Methods inherited from class jadex.binary.BeanCodec
createObject, decodeSubObjects, isApplicable, readBeanProperties, writeBeanProperties
-
Methods inherited from class jadex.binary.AbstractCodec
canReference, isApplicable, isFixedFrame, process, recordKnownDecodedObject
-
-
-
-
Field Detail
-
intro
protected IBeanIntrospector intro
Bean introspector for inspecting beans.
-
-
Method Detail
-
isApplicable
public boolean isApplicable(java.lang.Class<?> clazz)
Tests if the decoder can decode the class.- Specified by:
isApplicable
in interfaceIDecoderHandler
- Overrides:
isApplicable
in classBeanCodec
- Parameters:
clazz
- The class.- Returns:
- True, if the decoder can decode this class.
-
decode
public java.lang.Object decode(java.lang.Class<?> clazz, IDecodingContext context)
Add pattern property with applyPattern method.- Specified by:
decode
in interfaceIDecoderHandler
- Overrides:
decode
in classAbstractCodec
- Parameters:
clazz
- The class of the object.context
- The decoding context.- Returns:
- The decoded object.
-
encode
public java.lang.Object encode(java.lang.Object object, java.lang.Class<?> clazz, java.util.List<ITraverseProcessor> preprocessors, java.util.List<ITraverseProcessor> processors, Traverser.MODE mode, Traverser traverser, java.lang.ClassLoader targetcl, IEncodingContext ec)
Add pattern property from toPattern method.
-
-