Package com.alibaba.fastjson.serializer
Class CharArrayCodec
- java.lang.Object
-
- com.alibaba.fastjson.serializer.CharArrayCodec
-
- All Implemented Interfaces:
ObjectDeserializer
public class CharArrayCodec extends Object implements ObjectDeserializer
-
-
Constructor Summary
Constructors Constructor Description CharArrayCodec()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> Tdeserialze(DefaultJSONParser parser)<T> Tdeserialze(DefaultJSONParser parser, Type clazz, Object fieldName)fastjson invokes this call-back method during deserialization when it encounters a field of the specified type.intgetFastMatchToken()
-
-
-
Method Detail
-
deserialze
public <T> T deserialze(DefaultJSONParser parser, Type clazz, Object fieldName)
Description copied from interface:ObjectDeserializerfastjson invokes this call-back method during deserialization when it encounters a field of the specified type.In the implementation of this call-back method, you should consider invoking
JSON.parseObject(String, Type, Feature[])method to create objects for any non-trivial field of the returned object.- Specified by:
deserialzein interfaceObjectDeserializer- Parameters:
parser- context DefaultJSONParser being deserializedclazz- The type of the Object to deserialize tofieldName- parent object field name- Returns:
- a deserialized object of the specified type which is a subclass of
T
-
deserialze
public static <T> T deserialze(DefaultJSONParser parser)
-
getFastMatchToken
public int getFastMatchToken()
- Specified by:
getFastMatchTokenin interfaceObjectDeserializer
-
-