public class JavaObjectSerializer extends AbstractObjectValueSerializer
| Modifier and Type | Class and Description | 
|---|---|
protected static class  | 
JavaObjectSerializer.ClassloaderAwareObjectInputStream  | 
| Modifier and Type | Field and Description | 
|---|---|
static String | 
NAME  | 
serializationDataFormatvalueType| Constructor and Description | 
|---|
JavaObjectSerializer()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected boolean | 
canSerializeObject(Object value)
return true if this serializer is able to serialize the provided object. 
 | 
protected Object | 
deserializeFromByteArray(byte[] bytes,
                        String objectTypeName)
Deserialize the object from a byte array. 
 | 
String | 
getName()
The name of this serializer. 
 | 
protected String | 
getTypeNameForDeserialized(Object deserializedObject)
Returns the type name for the deserialized object. 
 | 
protected boolean | 
isSerializationTextBased()
Return true if the serialization is text based. 
 | 
protected byte[] | 
serializeToByteArray(Object deserializedObject)
Implementations must return a byte[] representation of the provided object. 
 | 
canWriteValue, convertToTypedValue, getSerializationDataformat, getSerializedBytesValue, getSerializedStringValue, isMutableValue, readObjectNameFromFields, readSerializedValueFromFields, readValue, updateObjectValue, writeToValueFields, writeValuecanHandle, getTypepublic static final String NAME
public String getName()
TypedValueSerializerprotected boolean isSerializationTextBased()
AbstractObjectValueSerializerisSerializationTextBased in class AbstractObjectValueSerializerprotected Object deserializeFromByteArray(byte[] bytes, String objectTypeName) throws Exception
AbstractObjectValueSerializerdeserializeFromByteArray in class AbstractObjectValueSerializerbytes - the object to deserializeobjectTypeName - the type name of the object to deserializeExceptionprotected byte[] serializeToByteArray(Object deserializedObject) throws Exception
AbstractObjectValueSerializerserializeToByteArray in class AbstractObjectValueSerializerdeserializedObject - the object to serializeExceptionprotected String getTypeNameForDeserialized(Object deserializedObject)
AbstractObjectValueSerializergetTypeNameForDeserialized in class AbstractObjectValueSerializerprotected boolean canSerializeObject(Object value)
AbstractObjectValueSerializercanSerializeObject in class AbstractObjectValueSerializervalue - the object to test (guaranteed to be a non-null value)Copyright © 2018. All rights reserved.