SerializeMethod
public class BasicStrokeSerializer extends java.lang.Object implements SerializeMethod
BasicStroke
Constructor | Description |
---|---|
BasicStrokeSerializer() |
Default Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.Class |
getObjectClass() |
The class of the object, which this object can serialize.
|
java.lang.Object |
readObject(java.io.ObjectInputStream stream) |
Reads the object from the object input stream.
|
void |
writeObject(java.lang.Object o,
java.io.ObjectOutputStream stream) |
Writes a serializable object description to the given object output stream.
|
public void writeObject(java.lang.Object o, java.io.ObjectOutputStream stream) throws java.io.IOException
writeObject
in interface SerializeMethod
o
- the to be serialized object.stream
- the outputstream that should receive the object.java.io.IOException
- if an I/O error occured.public java.lang.Object readObject(java.io.ObjectInputStream stream) throws java.io.IOException, java.lang.ClassNotFoundException
readObject
in interface SerializeMethod
stream
- 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.public java.lang.Class getObjectClass()
getObjectClass
in interface SerializeMethod
java.awt.BasicStroke
.