Class FSTStringSerializer
java.lang.Object
org.nustaq.serialization.FSTBasicObjectSerializer
org.nustaq.serialization.serializers.FSTStringSerializer
- All Implemented Interfaces:
FSTCrossPlatformSerialzer,FSTObjectSerializer
public class FSTStringSerializer extends FSTBasicObjectSerializer
Created with IntelliJ IDEA.
User: ruedi
Date: 07.12.12
Time: 01:26
To change this template use File | Settings | File Templates.
-
Field Summary
Fields Modifier and Type Field Description static FSTStringSerializerInstance -
Constructor Summary
Constructors Constructor Description FSTStringSerializer() -
Method Summary
Modifier and Type Method Description Objectinstantiate(Class objectClass, FSTObjectInput in, FSTClazzInfo serializationInfo, FSTClazzInfo.FSTFieldInfo referencee, int streamPosition)return null to delegate object instantiation to FST.voidwriteObject(FSTObjectOutput out, Object toWrite, FSTClazzInfo clzInfo, FSTClazzInfo.FSTFieldInfo referencedBy, int streamPosition)write the contents of a given objectbooleanwriteTupleEnd()Methods inherited from class org.nustaq.serialization.FSTBasicObjectSerializer
alwaysCopy, readObject, willHandleClass
-
Field Details
-
Constructor Details
-
FSTStringSerializer
public FSTStringSerializer()
-
-
Method Details
-
writeObject
public void writeObject(FSTObjectOutput out, Object toWrite, FSTClazzInfo clzInfo, FSTClazzInfo.FSTFieldInfo referencedBy, int streamPosition) throws IOExceptionDescription copied from interface:FSTObjectSerializerwrite the contents of a given object- Throws:
IOException
-
instantiate
public Object instantiate(Class objectClass, FSTObjectInput in, FSTClazzInfo serializationInfo, FSTClazzInfo.FSTFieldInfo referencee, int streamPosition) throws ExceptionDescription 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 classFSTBasicObjectSerializer- Throws:
Exception
-
writeTupleEnd
public boolean writeTupleEnd()- Specified by:
writeTupleEndin interfaceFSTCrossPlatformSerialzer- Overrides:
writeTupleEndin classFSTBasicObjectSerializer
-