home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  

Java in a Nutshell

Previous Chapter 24
The java.io Package

24.45 java.io.OptionalDataException (JDK 1.1)

This exception is thrown by the readObject() method of an ObjectInputStream when it encounters primitive type data where it expects object data. Despite the exception name, this data is not "optional," and object deserialization is aborted.

public class OptionalDataException extends ObjectStreamException {
    // No Constructor
    // Public Instance Variables
            public boolean eof;
            public int length;



Thrown By:


Previous Home Next
java.io.ObjectStreamException (JDK 1.1) Book Index java.io.OutputStream (JDK 1.0)

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java