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

Exception indicating the failure of an object read operation due to unread primitive data, or the end of data belonging to a serialized object in the stream. This exception may be thrown in two cases:

Since:
JDK1.1
Author:
unascribed
See Also:
Serialized Form

Field Summary
 boolean eof
          True if there is no more data in the buffered part of the stream.
 int length
          The number of bytes of primitive data available to be read in the current buffer.
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
(package private) OptionalDataException(boolean end)
           
(package private) OptionalDataException(int len)
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

length

public int length
The number of bytes of primitive data available to be read in the current buffer.


eof

public boolean eof
True if there is no more data in the buffered part of the stream.

Constructor Detail

OptionalDataException

OptionalDataException(int len)

OptionalDataException

OptionalDataException(boolean end)