Package java.io

Class OptionalDataException

All Implemented Interfaces:
Serializable

public class OptionalDataException
extends ObjectStreamException
Signals that the ObjectInputStream class encountered a primitive type (int, char etc.) instead of an object instance in the input stream.
See Also:
ObjectInputStream.available(), ObjectInputStream.readObject(), ObjectInputStream.skipBytes(int), Serialized Form
  • Field Details

    • eof

      public boolean eof
      true indicates that there is no more primitive data available.
    • length

      public int length
      The number of bytes of primitive data (int, char, long etc.) that are available.