java.io
Class EOFException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by java.io.EOFException
All Implemented Interfaces:
Serializable

public class EOFException
extends IOException

This exception is thrown when the end of the file or stream was encountered unexpectedly. This is not the normal way that an EOF condition is reported; such as a special value like -1 being returned. However, certain types of streams expecting certain data in a certain format might reach EOF before reading their expected data pattern and thus throw this exception.

See Also:
Serialized Form

Constructor Summary
EOFException()
          Create an exception without a descriptive error message.
EOFException(String message)
          Create an exception with a descriptive error message.
 
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
 

Constructor Detail

EOFException

public EOFException()
Create an exception without a descriptive error message.


EOFException

public EOFException(String message)
Create an exception with a descriptive error message.

Parameters:
message - the descriptive error message