|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.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 java.awt.Stroke |
readStroke(java.io.ObjectInputStream stream)
Reads a Stroke object that has been serialized by the
writeStroke(java.awt.Stroke, java.io.ObjectOutputStream) method. |
static void |
writeStroke(java.awt.Stroke stroke,
java.io.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 java.awt.Stroke readStroke(java.io.ObjectInputStream stream) throws java.io.IOException, java.lang.ClassNotFoundException
Stroke
object that has been serialized by the
writeStroke(java.awt.Stroke, java.io.ObjectOutputStream)
method.
stream
- the input stream.
java.io.IOException
- if there is an I/O problem.
java.lang.ClassNotFoundException
- if there is a problem loading a class.public static void writeStroke(java.awt.Stroke stroke, java.io.ObjectOutputStream stream) throws java.io.IOException
Stroke
object.
stroke
- the stroke object.stream
- the output stream.
java.io.IOException
- if there is an I/O error.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |