java.io.OptionalDataException
java.io.ObjectStreamException
None
None
New as of JDK 1.1
An OptionalDataException is thrown during object deserialization to indicate that primitive data has been encountered instead of objects. Either the eof flag is true, or the length variable indicates the number of bytes that are available to be read.
public class java.io.OptionalDataException extends java.io.ObjectStreamException { // Variables public boolean eof; public int length; }
A boolean value that indicates if the stream is at its end.
The number of available bytes of data.
Method |
Inherited From |
Method |
Inherited From |
---|---|---|---|
clone() |
Object |
equals(Object) |
Object |
fillInStackTrace() |
Throwable |
finalize() |
Object |
getClass() |
Object |
getLocalizedMessage() |
Throwable |
getMessage() |
Throwable |
hashCode() |
Object |
notify() |
Object |
notifyAll() |
Object |
printStackTrace() |
Throwable |
printStackTrace(PrintStream) |
Throwable |
printStackTrace(PrintWriter) |
Throwable |
toString() |
Object |
wait() |
Object |
wait(long) |
Object |
wait(long, int) |
Object |
Exception, ObjectInputStream, ObjectStreamException, Throwable