| java.lang.Object org.jfree.io.SerialUtilities
SerialUtilities | public class SerialUtilities (Code) | | A class containing useful utility methods relating to serialization.
author: David Gilbert |
isSerializable | public static boolean isSerializable(Class c)(Code) | | Returns true if a class implements Serializable
and false otherwise.
Parameters: c - the class. A boolean. |
writeAttributedString | public static void writeAttributedString(AttributedString as, ObjectOutputStream stream) throws IOException(Code) | | Serialises an AttributedString object.
Parameters: as - the attributed string object (null permitted). Parameters: stream - the output stream (null not permitted). throws: IOException - if there is an I/O error. |
writePaint | public static void writePaint(Paint paint, ObjectOutputStream stream) throws IOException(Code) | | Serialises a Paint object.
Parameters: paint - the paint object (null permitted). Parameters: stream - the output stream (null not permitted). throws: IOException - if there is an I/O error. |
writePoint2D | public static void writePoint2D(Point2D p, ObjectOutputStream stream) throws IOException(Code) | | Serialises a Point2D object.
Parameters: p - the point object (null permitted). Parameters: stream - the output stream (null not permitted). throws: IOException - if there is an I/O error. |
writeShape | public static void writeShape(Shape shape, ObjectOutputStream stream) throws IOException(Code) | | Serialises a Shape object.
Parameters: shape - the shape object (null permitted). Parameters: stream - the output stream (null not permitted). throws: IOException - if there is an I/O error. |
writeStroke | public static void writeStroke(Stroke stroke, ObjectOutputStream stream) throws IOException(Code) | | Serialises a Stroke object. This code handles the
BasicStroke class which is the only Stroke
implementation provided by the JDK (and isn't directly
Serializable ).
Parameters: stroke - the stroke object (null permitted). Parameters: stream - the output stream (null not permitted). throws: IOException - if there is an I/O error. |
|
|