public class Jdk8DateCodec extends ContextObjectDeserializer implements ObjectSerializer, ContextObjectSerializer, ObjectDeserializer
| 限定符和类型 | 字段和说明 |
|---|---|
static Jdk8DateCodec |
instance |
| 构造器和说明 |
|---|
Jdk8DateCodec() |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> T |
deserialze(DefaultJSONParser parser,
Type type,
Object fieldName,
String format,
int feature) |
int |
getFastMatchToken() |
void |
write(JSONSerializer serializer,
Object object,
BeanContext context) |
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.
|
deserialzedeserialzepublic static final Jdk8DateCodec instance
public <T> T deserialze(DefaultJSONParser parser, Type type, Object fieldName, String format, int feature)
deserialze 在类中 ContextObjectDeserializerpublic int getFastMatchToken()
getFastMatchToken 在接口中 ObjectDeserializerpublic void write(JSONSerializer serializer, Object object, Object fieldName, Type fieldType, int features) throws IOException
ObjectSerializerwrite 在接口中 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 void write(JSONSerializer serializer, Object object, BeanContext context) throws IOException
write 在接口中 ContextObjectSerializerIOExceptionCopyright © 2012–2020 Alibaba Group. All rights reserved.