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

Class EOFException

java.lang.Object
|
+--java.lang.Throwable
   |
   +--java.lang.Exception
      |
      +--java.io.IOException
         |
         +--java.io.EOFException


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.

Authors:

Constructor Summary

EOFException()

Create an exception without a descriptive error message.
EOFException(java.lang.String message)

Create an exception with a descriptive error message.

Constructor Details

EOFException

public EOFException()

Create an exception without a descriptive error message.


EOFException

public EOFException(java.lang.String message)

Create an exception with a descriptive error message.

Parameters: