org.jfree.serializer
Interface SerializeMethod
The SerializeMethod is used to define a serialization strategy for a certain object
type.
Class | getObjectClass()- The class of the object, which this object can serialize.
|
Object | readObject(ObjectInputStream in)- Reads the object from the object input stream.
|
void | writeObject(Object o, ObjectOutputStream out)- Writes a serializable object description to the given object output stream.
|
getObjectClass
public Class getObjectClass()
The class of the object, which this object can serialize.
- the class of the object type, which this method handles.
readObject
public Object readObject(ObjectInputStream in)
throws IOException,
ClassNotFoundException Reads the object from the object input stream.
in - the object input stream from where to read the serialized data.
writeObject
public void writeObject(Object o,
ObjectOutputStream out)
throws IOException Writes a serializable object description to the given object output stream.
o - the to be serialized object.out - the outputstream that should receive the object.