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.defaultPaintType = SerialUtilities.readPaintType(stream);
    } 
 
}