Class FSTProxySerializer
java.lang.Object
org.nustaq.serialization.FSTBasicObjectSerializer
org.nustaq.serialization.serializers.FSTProxySerializer
- All Implemented Interfaces:
FSTCrossPlatformSerialzer
,FSTObjectSerializer
-
Field Summary
Fields inherited from interface org.nustaq.serialization.FSTObjectSerializer
REALLY_NULL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioninstantiate
(Class objectClass, FSTObjectInput in, FSTClazzInfo serializationInfo, FSTClazzInfo.FSTFieldInfo referencee, int streamPositioin) return null to delegate object instantiation to FST.void
writeObject
(FSTObjectOutput out, Object toWrite, FSTClazzInfo clzInfo, FSTClazzInfo.FSTFieldInfo referencedBy, int streamPosition) write the contents of a given objectMethods inherited from class org.nustaq.serialization.FSTBasicObjectSerializer
alwaysCopy, readObject, willHandleClass, writeTupleEnd
-
Constructor Details
-
FSTProxySerializer
public FSTProxySerializer()
-
-
Method Details
-
writeObject
public void writeObject(FSTObjectOutput out, Object toWrite, FSTClazzInfo clzInfo, FSTClazzInfo.FSTFieldInfo referencedBy, int streamPosition) throws IOException Description copied from interface:FSTObjectSerializer
write the contents of a given object- Throws:
IOException
-
instantiate
public Object instantiate(Class objectClass, FSTObjectInput in, FSTClazzInfo serializationInfo, FSTClazzInfo.FSTFieldInfo referencee, int streamPositioin) throws IOException, ClassNotFoundException Description copied from interface:FSTObjectSerializer
return 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:
instantiate
in interfaceFSTObjectSerializer
- Overrides:
instantiate
in classFSTBasicObjectSerializer
- Throws:
IOException
ClassNotFoundException
-