public class DateCodec extends AbstractDateDeserializer implements ObjectSerializer, ObjectDeserializer
| Constructor and Description |
|---|
DateCodec() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
cast(DefaultJSONParser parser,
Type clazz,
Object fieldName,
Object val) |
int |
getFastMatchToken() |
void |
write(JSONSerializer serializer,
Object object,
Object fieldName,
Type fieldType,
int features)
fastjson invokes this call-back method during serialization when it encounters a field of the
specified type.
|
deserialze, deserialzeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeserialzepublic static final DateCodec instance
public void write(JSONSerializer serializer, Object object, Object fieldName, Type fieldType, int features) throws IOException
ObjectSerializerwrite in interface ObjectSerializerobject - src the object that needs to be converted to Json.fieldName - parent object field namefieldType - parent object field typefeatures - parent object field serializer featuresIOExceptionpublic <T> T cast(DefaultJSONParser parser, Type clazz, Object fieldName, Object val)
public int getFastMatchToken()
getFastMatchToken in interface ObjectDeserializerCopyright © 2012–2022 Alibaba Group. All rights reserved.