java.io
Class EOFException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
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. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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