    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class java.io.OptionalDataException

    java.lang.Object
       |
       +----java.lang.Throwable
               |
               +----java.lang.Exception
                       |
                       +----java.io.IOException
                               |
                               +----java.io.ObjectStreamException
                                       |
                                       +----java.io.OptionalDataException

public class OptionalDataException
extends ObjectStreamException

This exception is thrown if readObject has optional data. Either the eof flag will be true or the length will be the number of bytes available to read.

##

eof
  True if there is not more data in the buffered part of the stream.
length
  The number of bytes available to be read in the current buffer.

##

length

      public int length

  The number of bytes available to be read in the current buffer.

eof

      public boolean eof

  True if there is not more data in the buffered part of the stream.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index