Class SerializableSerializer<T extends VirtualizationSerializable>
- java.lang.Object
-
- net.sf.jasperreports.engine.virtualization.SerializableSerializer<T>
-
- All Implemented Interfaces:
ObjectSerializer<T>
public class SerializableSerializer<T extends VirtualizationSerializable> extends Object implements ObjectSerializer<T>
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXCEPTION_MESSAGE_KEY_CLASS_INSTANCE_ERROR
static String
EXCEPTION_MESSAGE_KEY_INITIALIZATION_FAILED
static String
EXCEPTION_MESSAGE_KEY_UNEXPECTED_VALUE_TYPE
-
Constructor Summary
Constructors Constructor Description SerializableSerializer(int typeValue, Class<T> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReferenceType
defaultReferenceType()
boolean
defaultStoreReference()
T
read(VirtualizationInput in)
int
typeValue()
void
write(T value, VirtualizationOutput out)
-
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_CLASS_INSTANCE_ERROR
public static final String EXCEPTION_MESSAGE_KEY_CLASS_INSTANCE_ERROR
- See Also:
- Constant Field Values
-
EXCEPTION_MESSAGE_KEY_INITIALIZATION_FAILED
public static final String EXCEPTION_MESSAGE_KEY_INITIALIZATION_FAILED
- See Also:
- Constant Field Values
-
EXCEPTION_MESSAGE_KEY_UNEXPECTED_VALUE_TYPE
public static final String EXCEPTION_MESSAGE_KEY_UNEXPECTED_VALUE_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
typeValue
public int typeValue()
- Specified by:
typeValue
in interfaceObjectSerializer<T extends VirtualizationSerializable>
-
defaultReferenceType
public ReferenceType defaultReferenceType()
- Specified by:
defaultReferenceType
in interfaceObjectSerializer<T extends VirtualizationSerializable>
-
defaultStoreReference
public boolean defaultStoreReference()
- Specified by:
defaultStoreReference
in interfaceObjectSerializer<T extends VirtualizationSerializable>
-
write
public void write(T value, VirtualizationOutput out) throws IOException
- Specified by:
write
in interfaceObjectSerializer<T extends VirtualizationSerializable>
- Throws:
IOException
-
read
public T read(VirtualizationInput in) throws IOException
- Specified by:
read
in interfaceObjectSerializer<T extends VirtualizationSerializable>
- Throws:
IOException
-
-