|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
java.io.ObjectStreamException
java.io.OptionalDataException
public class OptionalDataException
When readObject() encounters primitive types (int, char, etc) instead of an object instance in the input stream, this type of exception will be thrown.
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 |
|---|
public boolean eof
public int length
| Constructor Detail |
|---|
OptionalDataException()
OptionalDataException(String detailMessage)
detailMessage - String The detail message for the exception.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||