Class FSTJSonUnmodifiableMapSerializer
java.lang.Object
org.nustaq.serialization.FSTBasicObjectSerializer
org.nustaq.serialization.serializers.FSTMapSerializer
org.nustaq.serialization.serializers.FSTJSonUnmodifiableMapSerializer
- All Implemented Interfaces:
FSTCrossPlatformSerialzer,FSTObjectSerializer
For JSON only, see {@link <a href="https://github.com/RuedigerMoeller/fast-serialization/issues/114">Unable to deserialize unmodifiable collections from JSON}.
- Author:
- Jakub Kubrynski
-
Field Summary
FieldsFields inherited from interface org.nustaq.serialization.FSTObjectSerializer
REALLY_NULL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninstantiate(Class objectClass, FSTObjectInput in, FSTClazzInfo serializationInfo, FSTClazzInfo.FSTFieldInfo referencee, int streamPosition) return null to delegate object instantiation to FST.Methods inherited from class org.nustaq.serialization.serializers.FSTMapSerializer
writeObjectMethods inherited from class org.nustaq.serialization.FSTBasicObjectSerializer
alwaysCopy, readObject, willHandleClass, writeTupleEnd
-
Field Details
-
UNMODIFIABLE_MAP_CLASS
-
-
Constructor Details
-
FSTJSonUnmodifiableMapSerializer
public FSTJSonUnmodifiableMapSerializer()
-
-
Method Details
-
instantiate
public Object instantiate(Class objectClass, FSTObjectInput in, FSTClazzInfo serializationInfo, FSTClazzInfo.FSTFieldInfo referencee, int streamPosition) throws Exception Description copied from interface:FSTObjectSerializerreturn null to delegate object instantiation to FST. If you want to implement object instantiation yourself, usually you leave the readObject method empty and handle instantiation and reading the object here. You must call registerObjectForWrite immediately after creating it on the FSTObjectInput- Specified by:
instantiatein interfaceFSTObjectSerializer- Overrides:
instantiatein classFSTMapSerializer- Throws:
Exception
-