Class FSTDateSerializer
java.lang.Object
org.nustaq.serialization.FSTBasicObjectSerializer
org.nustaq.serialization.serializers.FSTDateSerializer
- All Implemented Interfaces:
FSTCrossPlatformSerialzer,FSTObjectSerializer
Created with IntelliJ IDEA.
User: ruedi
Date: 02.12.12
Time: 14:16
To change this template use File | Settings | File Templates.
-
Field Summary
Fields inherited from interface org.nustaq.serialization.FSTObjectSerializer
REALLY_NULL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninstantiate(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 objectMethods inherited from class org.nustaq.serialization.FSTBasicObjectSerializer
readObject, willHandleClass, writeTupleEnd
-
Constructor Details
-
FSTDateSerializer
public FSTDateSerializer()
-
-
Method Details
-
writeObject
public void writeObject(FSTObjectOutput out, Object toWrite, FSTClazzInfo clzInfo, FSTClazzInfo.FSTFieldInfo referencedBy, int streamPosition) throws IOException Description copied from interface:FSTObjectSerializerwrite the contents of a given object- Throws:
IOException
-
alwaysCopy
public boolean alwaysCopy()- Specified by:
alwaysCopyin interfaceFSTObjectSerializer- Overrides:
alwaysCopyin classFSTBasicObjectSerializer- Returns:
- true if FST can skip a search for same instances in the serialized ObjectGraph. This speeds up reading and writing and makes sense for short immutable such as Integer, Short, Character, Date, .. . For those classes it is more expensive (CPU, size) to do a lookup than to just write the Object twice in case.
-
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 classFSTBasicObjectSerializer- Throws:
Exception
-