|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SerializeMethod
The SerializeMethod is used to define a serialization strategy for a certain object type.
Method Summary | |
---|---|
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. |
Method Detail |
---|
void writeObject(Object o, ObjectOutputStream out) throws IOException
o
- the to be serialized object.out
- the outputstream that should receive the object.
IOException
- if an I/O error occured.Object readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
in
- the object input stream from where to read the serialized data.
IOException
- if reading the stream failed.
ClassNotFoundException
- if serialized object class cannot be found.Class getObjectClass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |