Name
OptionalDataException
Synopsis
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 stopped.
Figure 9-42. java.io.OptionalDataException
public class OptionalDataException extends ObjectStreamException { // No Constructor // Public Instance Fields public boolean eof; public int length; }
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.