org.pentaho.reporting.libraries.serializer
public class SerializerHelper extends Object
Method Summary | |
---|---|
static SerializerHelper | getInstance()
Returns or creates a new SerializerHelper. |
boolean | isSerializable(Object o) |
Object | readObject(ObjectInputStream in)
Reads the object from the object input stream. |
void | registerMethod(SerializeMethod method)
Registers a new SerializeMethod with this SerializerHelper.
|
void | unregisterMethod(SerializeMethod method)
Deregisters a new SerializeMethod with this SerializerHelper.
|
void | writeObject(Object o, ObjectOutputStream out)
Writes a serializable object description to the given object output stream.
|
Returns: the SerializerHelper singleton instance.
Parameters: in the object input stream from where to read the serialized data.
Returns: the generated object.
Throws: IOException if reading the stream failed. ClassNotFoundException if serialized object class cannot be found.
Parameters: method the method that should be registered.
Parameters: method the method that should be deregistered.
Parameters: o the to be serialized object. out the outputstream that should receive the object.
Throws: IOException if an I/O error occured.