java.io
Class OptionalDataException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended byjava.io.ObjectStreamException
                  extended byjava.io.OptionalDataException
All Implemented Interfaces:
Serializable

public class OptionalDataException
extends ObjectStreamException

When readObject() encounters primitive types (int, char, etc) instead of an object instance in the input stream, this type of exception will be thrown.

See Also:
ObjectInputStream#available(), ObjectInputStream#readObject(), ObjectInputStream#skipBytes(int), Serialized Form

Field Summary
 boolean eof
          If true it means there is no more primitive data available.
 int length
          Number of bytes of primitive data (int, char, long, etc).
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

eof

public boolean eof
If true it means there is no more primitive data available.


length

public int length
Number of bytes of primitive data (int, char, long, etc).