public class LocalDateTimeCodec extends AbstractCodec
Modifier and Type | Field and Description |
---|---|
static java.lang.Class<?> |
CHRONOLOCALDATECLASS
LocalDate super interface
|
static java.lang.Class<?> |
CHRONOLOCALDATETIMECLASS
LocalDateTime super interface
|
static java.lang.Class<?> |
LOCALTIMECLASS
Local time class
|
Constructor and Description |
---|
LocalDateTimeCodec() |
Modifier and Type | Method and Description |
---|---|
boolean |
canReference(java.lang.Object object,
java.lang.Class<?> clazz,
IEncodingContext ec)
Test if the codec allows referencing.
|
java.lang.Object |
createObject(java.lang.Class<?> clazz,
IDecodingContext context)
Creates the object during decoding.
|
java.lang.Object |
encode(java.lang.Object object,
java.lang.Class<?> clazz,
java.util.List<ITraverseProcessor> processors,
Traverser traverser,
java.util.Map<java.lang.Object,java.lang.Object> traversed,
boolean clone,
IEncodingContext ec)
Encode the object.
|
boolean |
isApplicable(java.lang.Class<?> clazz)
Tests if the decoder can decode the class.
|
decode, decodeSubObjects, isApplicable, process, recordKnownDecodedObject, runPreProcessors
public static final java.lang.Class<?> CHRONOLOCALDATECLASS
public static final java.lang.Class<?> LOCALTIMECLASS
public static final java.lang.Class<?> CHRONOLOCALDATETIMECLASS
public java.lang.Object encode(java.lang.Object object, java.lang.Class<?> clazz, java.util.List<ITraverseProcessor> processors, Traverser traverser, java.util.Map<java.lang.Object,java.lang.Object> traversed, boolean clone, IEncodingContext ec)
encode
in class AbstractCodec
public java.lang.Object createObject(java.lang.Class<?> clazz, IDecodingContext context)
createObject
in class AbstractCodec
clazz
- The class of the object.context
- The decoding context.public boolean isApplicable(java.lang.Class<?> clazz)
isApplicable
in interface IDecoderHandler
isApplicable
in class AbstractCodec
clazz
- The class.public boolean canReference(java.lang.Object object, java.lang.Class<?> clazz, IEncodingContext ec)
canReference
in class AbstractCodec
object
- The object.clazz
- The class.ec
- The encoding context.