Save This Page
Home » jcommon-1.0.13 » org.jfree.io » [javadoc | source]
org.jfree.io
public class: SerialUtilities [javadoc | source]
java.lang.Object
   org.jfree.io.SerialUtilities
A class containing useful utility methods relating to serialization.
Method from org.jfree.io.SerialUtilities Summary:
isSerializable,   readAttributedString,   readPaint,   readPoint2D,   readShape,   readStroke,   writeAttributedString,   writePaint,   writePoint2D,   writeShape,   writeStroke
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.io.SerialUtilities Detail:
 public static boolean isSerializable(Class c) 
    Returns true if a class implements Serializable and false otherwise.
 public static AttributedString readAttributedString(ObjectInputStream stream) throws ClassNotFoundException, IOException 
 public static Paint readPaint(ObjectInputStream stream) throws ClassNotFoundException, IOException 
 public static Point2D readPoint2D(ObjectInputStream stream) throws IOException 
 public static Shape readShape(ObjectInputStream stream) throws ClassNotFoundException, IOException 
 public static Stroke readStroke(ObjectInputStream stream) throws ClassNotFoundException, IOException 
 public static  void writeAttributedString(AttributedString as,
    ObjectOutputStream stream) throws IOException 
    Serialises an AttributedString object.
 public static  void writePaint(Paint paint,
    ObjectOutputStream stream) throws IOException 
    Serialises a Paint object.
 public static  void writePoint2D(Point2D p,
    ObjectOutputStream stream) throws IOException 
    Serialises a Point2D object.
 public static  void writeShape(Shape shape,
    ObjectOutputStream stream) throws IOException 
    Serialises a Shape object.
 public static  void writeStroke(Stroke stroke,
    ObjectOutputStream stream) throws IOException 
    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).