public class FSTJSonUnmodifiableCollectionSerializer extends FSTCollectionSerializer
Modifier and Type | Field and Description |
---|---|
static Class<?> |
UNMODIFIABLE_COLLECTION_CLASS |
static Class<?> |
UNMODIFIABLE_LIST_CLASS |
static Class<?> |
UNMODIFIABLE_RANDOM_ACCESS_LIST_CLASS |
static Class<?> |
UNMODIFIABLE_SET_CLASS |
REALLY_NULL
Constructor and Description |
---|
FSTJSonUnmodifiableCollectionSerializer() |
Modifier and Type | Method and Description |
---|---|
Object |
instantiate(Class objectClass,
FSTObjectInput in,
FSTClazzInfo serializationInfo,
FSTClazzInfo.FSTFieldInfo referencee,
int streamPosition)
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 object
|
alwaysCopy, readObject, willHandleClass, writeTupleEnd
public static final Class<?> UNMODIFIABLE_COLLECTION_CLASS
public static final Class<?> UNMODIFIABLE_RANDOM_ACCESS_LIST_CLASS
public static final Class<?> UNMODIFIABLE_SET_CLASS
public static final Class<?> UNMODIFIABLE_LIST_CLASS
public FSTJSonUnmodifiableCollectionSerializer()
public void writeObject(FSTObjectOutput out, Object toWrite, FSTClazzInfo clzInfo, FSTClazzInfo.FSTFieldInfo referencedBy, int streamPosition) throws IOException
FSTObjectSerializer
writeObject
in interface FSTObjectSerializer
writeObject
in class FSTCollectionSerializer
IOException
public Object instantiate(Class objectClass, FSTObjectInput in, FSTClazzInfo serializationInfo, FSTClazzInfo.FSTFieldInfo referencee, int streamPosition) throws Exception
FSTObjectSerializer
instantiate
in interface FSTObjectSerializer
instantiate
in class FSTCollectionSerializer
Exception
Copyright © 2017. All rights reserved.