Package java.io
Class OptionalDataException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.io.ObjectStreamException
java.io.OptionalDataException
- All Implemented Interfaces:
Serializable
public class OptionalDataException extends ObjectStreamException
Signals that the
ObjectInputStream class encountered a primitive type
(int, char etc.) instead of an object instance in the input
stream.-
Field Summary
-
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
eof
public boolean eoftrueindicates that there is no more primitive data available. -
length
public int lengthThe number of bytes of primitive data (int, char, long etc.) that are available.
-