public interface SerializeMethod
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class |
getObjectClass()
The class of the object, which this object can serialize.
|
java.lang.Object |
readObject(java.io.ObjectInputStream in)
Reads the object from the object input stream.
|
void |
writeObject(java.lang.Object o,
java.io.ObjectOutputStream out)
Writes a serializable object description to the given object output stream.
|
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.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.java.lang.Class getObjectClass()