|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.monitorenter.util.SerializationUtility
public final class SerializationUtility
A class containing useful utility methods relating to serialization.
This is originally inspired (serialization of trokes) by jfreechart.
Method Summary | |
---|---|
static Stroke |
readStroke(ObjectInputStream stream)
Reads a Stroke object that has been serialized by the
writeStroke(java.awt.Stroke, java.io.ObjectOutputStream) method. |
static void |
writeStroke(Stroke stroke,
ObjectOutputStream stream)
Serializes a Stroke object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Stroke readStroke(ObjectInputStream stream) throws IOException, ClassNotFoundException
Stroke
object that has been serialized by the
writeStroke(java.awt.Stroke, java.io.ObjectOutputStream)
method.
stream
- the input stream.
IOException
- if there is an I/O problem.
ClassNotFoundException
- if there is a problem loading a class.public static void writeStroke(Stroke stroke, ObjectOutputStream stream) throws IOException
Stroke
object.
stroke
- the stroke object.stream
- the output stream.
IOException
- if there is an I/O error.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |