Top Description Fields Constructors
java.io

public Class OptionalDataException

extends ObjectStreamException
Class Inheritance

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
1.1

Field Summary

Modifier and TypeField and Description
public boolean
eof

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

public int
length

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

private static final long

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
OptionalDataException(boolean end)

Field Detail

eofback to summary
public boolean eof

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

lengthback to summary
public int length

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

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.io.ObjectStreamException.serialVersionUID.

Annotations
@Serial

Constructor Detail

OptionalDataExceptionback to summary
pack-priv OptionalDataException(int len)
OptionalDataExceptionback to summary
pack-priv OptionalDataException(boolean end)