java.io

Class OptionalDataException

public class OptionalDataException extends ObjectStreamException

This exception is thrown when unexpected data appears in the input stream from which a serialized object is being read. There are two cases:

Since: 1.1

UNKNOWN: updated to 1.4

Field Summary
booleaneof
Whether or not the end of the stream has been reached.
intlength
The number of valid bytes that can be read.

Field Detail

eof

public boolean eof
Whether or not the end of the stream has been reached.

Serial: the end of the buffer was reached

length

public int length
The number of valid bytes that can be read.

Serial: the bytes of the buffer remaining