public final class SerializationUtility
extends java.lang.Object
This is originally inspired (serialization of trokes) by jfreechart.
Modifier and Type | Method | Description |
---|---|---|
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. |
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.Copyright © 2001 - 2010 LGPL, All Rights Footloose.