public abstract class FSTBasicObjectSerializer extends Object implements FSTCrossPlatformSerialzer
| Modifier | Constructor and Description |
|---|---|
protected |
FSTBasicObjectSerializer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
alwaysCopy() |
Object |
instantiate(Class objectClass,
FSTObjectInput in,
FSTClazzInfo serializationInfo,
FSTClazzInfo.FSTFieldInfo referencee,
int streamPositioin)
return null to delegate object instantiation to FST.
|
void |
readObject(FSTObjectInput in,
Object toRead,
FSTClazzInfo clzInfo,
FSTClazzInfo.FSTFieldInfo referencedBy)
read the content to an already instantiated object
|
boolean |
willHandleClass(Class cl)
useful if you register for a class and its subclasses, but want to exclude a specific subclass
|
boolean |
writeTupleEnd() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteObjectpublic boolean willHandleClass(Class cl)
FSTObjectSerializerwillHandleClass in interface FSTObjectSerializerpublic void readObject(FSTObjectInput in, Object toRead, FSTClazzInfo clzInfo, FSTClazzInfo.FSTFieldInfo referencedBy) throws IOException, ClassNotFoundException, IllegalAccessException, InstantiationException
FSTObjectSerializerreadObject in interface FSTObjectSerializerIOExceptionClassNotFoundExceptionIllegalAccessExceptionInstantiationExceptionpublic boolean alwaysCopy()
alwaysCopy in interface FSTObjectSerializerpublic Object instantiate(Class objectClass, FSTObjectInput in, FSTClazzInfo serializationInfo, FSTClazzInfo.FSTFieldInfo referencee, int streamPositioin) throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException
FSTObjectSerializerinstantiate in interface FSTObjectSerializerIOExceptionClassNotFoundExceptionInstantiationExceptionIllegalAccessExceptionpublic boolean writeTupleEnd()
writeTupleEnd in interface FSTCrossPlatformSerialzerCopyright © 2015. All rights reserved.