Package java.io |
![]() Previous |
![]() Java API |
![]() Index |
![]() Next |
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.
public EOFException()Constructs an EOFException with no detail message.
public EOFException(String s)Constructs an EOFException with the specified detail message.
Parameter Description s the detail message
© 1996 Sun Microsystems, Inc. All rights reserved.