Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.io

Class OptionalDataException

java.lang.Object
|
+--java.lang.Throwable
   |
   +--java.lang.Exception
      |
      +--java.io.IOException
         |
         +--java.io.ObjectStreamException
            |
            +--java.io.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:Authors:

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 Details

eof

public boolean eof

Whether or not the end of the stream has been reached.


length

public int length

The number of valid bytes that can be read.