Package java.io Previous
Previous
Java API
Java API
Index
Index
Next
Next

Class EOFException

Constructors

public  class  java.io.EOFException
    extends  java.io.IOException  
{
        // Constructors
    public EOFException();	
    public EOFException(String  s);	
}

Signals that an end-of-file has been reached unexpectedly during input.

This exception is mainly used by data input streams, which generally expect a binary file in a specific format, and for which an end-of-stream is an unusual condition. Most other input streams return a special value on end of stream.


Constructors


EOFException

public EOFException() 

Constructs an EOFException with no detail message.


EOFException

public EOFException(String  s) 

Constructs an EOFException with the specified detail message.

ParameterDescription
s the detail message



© 1996 Sun Microsystems, Inc. All rights reserved.