Package com.alibaba.fastjson.serializer
Class MiscCodec
java.lang.Object
com.alibaba.fastjson.serializer.MiscCodec
- All Implemented Interfaces:
ObjectDeserializer,ObjectSerializer,ObjectReader,com.alibaba.fastjson2.writer.ObjectWriter
-
Field Summary
FieldsFields inherited from interface com.alibaba.fastjson2.reader.ObjectReader
HASH_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Tdeserialze(DefaultJSONParser parser, Type type, Object fieldName) intlongvoidwrite(JSONSerializer serializer, Object object, Object fieldName, Type fieldType, int features) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.alibaba.fastjson.parser.deserializer.ObjectDeserializer
readObjectMethods inherited from interface com.alibaba.fastjson2.reader.ObjectReader
autoType, autoType, createInstance, createInstance, createInstance, createInstance, createInstance, createInstanceNoneDefaultConstructor, getBuildFunction, getFieldReader, getFieldReader, getFieldReaderLCase, getObjectClass, getTypeKey, getTypeKeyHash, readArrayMappingJSONBObject, readArrayMappingObject, readJSONBObject, readObject, setFieldValue, setFieldValueMethods inherited from interface com.alibaba.fastjson.serializer.ObjectSerializer
writeMethods inherited from interface com.alibaba.fastjson2.writer.ObjectWriter
getFieldWriter, getFieldWriter, getFieldWriters, hasFilter, write, writeArrayMapping, writeArrayMappingJSONB, writeArrayMappingJSONB, writeJSONB, writeTypeInfo, writeWithFilter, writeWithFilter
-
Field Details
-
instance
-
-
Constructor Details
-
MiscCodec
public MiscCodec()
-
-
Method Details
-
deserialze
- Specified by:
deserialzein interfaceObjectDeserializer
-
getFastMatchToken
public int getFastMatchToken()- Specified by:
getFastMatchTokenin interfaceObjectDeserializer
-
write
public void write(JSONSerializer serializer, Object object, Object fieldName, Type fieldType, int features) throws IOException - Specified by:
writein interfaceObjectSerializer- Throws:
IOException
-
getFeatures
public long getFeatures()- Specified by:
getFeaturesin interfaceObjectReader- Specified by:
getFeaturesin interfacecom.alibaba.fastjson2.writer.ObjectWriter
-