Foundation 1.1.2

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
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.
 
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.


Foundation 1.1.2

Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. Use of this specification is subject to license terms.