public class Line2DSerializer extends Object implements SerializeMethod
Line2D| Constructor and Description |
|---|
Line2DSerializer()
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Class |
getObjectClass()
Returns 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.
|
public void writeObject(Object o, ObjectOutputStream out) throws IOException
writeObject in interface SerializeMethodo - the to be serialized object.out - the outputstream that should receive the object.IOException - if an I/O error occured.public Object readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
readObject in interface SerializeMethodin - 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.public Class getObjectClass()
getObjectClass in interface SerializeMethod