Code example for ObjectOutputStream

Methods: defaultWriteObject

0
     * @param stream  the output stream. 
     * 
     * @throws IOException  if there is an I/O error. 
     */ 
    private void writeObject(ObjectOutputStream stream) throws IOException {
        stream.defaultWriteObject();
        SerialUtilities.writePaintType(this.paintType, stream);
        SerialUtilities.writePaintType(this.backgroundPaintType, stream);
        SerialUtilities.writePaintType(this.outlinePaintType, stream);
//        SerialUtilities.writeStroke(this.outlineStroke, stream); 
    } 
 
    /** 
     * Provides serialization support. 
     * 
     * @param stream  the input stream. 
     * 
     * @throws IOException  if there is an I/O error. 
     * @throws ClassNotFoundException  if there is a classpath problem. 
     */ 
    private void readObject(ObjectInputStream stream)