Build 1.0_r1(from source)

java.io
Class OptionalDataException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by java.io.ObjectStreamException
                  extended by java.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).
 
Constructor Summary
OptionalDataException()
          Constructs a new instance of this class with its walkback filled in.
OptionalDataException(String detailMessage)
          Constructs a new instance of this class with its walkback and message filled in.
 
Method Summary
 
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

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

Constructor Detail

OptionalDataException

OptionalDataException()
Constructs a new instance of this class with its walkback filled in.


OptionalDataException

OptionalDataException(String detailMessage)
Constructs a new instance of this class with its walkback and message filled in.

Parameters:
detailMessage - String The detail message for the exception.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature