|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.libraries.serializer.SerializerHelper
public class SerializerHelper
The SerializeHelper is used to make implementing custom serialization handlers easier. Handlers for certain object types need to be added to this helper before this implementation is usable.
Method Summary | |
---|---|
static SerializerHelper |
getInstance()
Returns or creates a new SerializerHelper. |
boolean |
isSerializable(java.lang.Object o)
|
java.lang.Object |
readObject(java.io.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(java.lang.Object o,
java.io.ObjectOutputStream out)
Writes a serializable object description to the given object output stream. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static SerializerHelper getInstance()
public void registerMethod(SerializeMethod method)
method
- the method that should be registered.public void unregisterMethod(SerializeMethod method)
method
- the method that should be deregistered.public void writeObject(java.lang.Object o, java.io.ObjectOutputStream out) throws java.io.IOException
o
- the to be serialized object.out
- the outputstream that should receive the object.
java.io.IOException
- if an I/O error occured.public boolean isSerializable(java.lang.Object o)
public java.lang.Object readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
in
- the object input stream from where to read the serialized data.
java.io.IOException
- if reading the stream failed.
java.lang.ClassNotFoundException
- if serialized object class cannot be found.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |