Code example for ObjectInputStream

Methods: defaultReadObject

0
     * @throws IOException  if there is an I/O error. 
     * @throws ClassNotFoundException  if there is a classpath problem. 
     */ 
    private void readObject(ObjectInputStream stream)
        throws IOException, ClassNotFoundException { 
        stream.defaultReadObject();
        this.paintType = SerialUtilities.readPaintType(stream);
        this.backgroundPaintType = SerialUtilities.readPaintType(stream);
        this.outlinePaintType = SerialUtilities.readPaintType(stream);
//        this.outlineStroke = SerialUtilities.readStroke(stream); 
    } 
 
}