Packages  This Package  Prev  Next  Index  

§2.27 Class EOFException

public  class
    extends  (I-§2.29)
        // Constructors
    public EOFException();	§2.27.1
    public EOFException(String  s);	§2.27.2
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.
s - the detail message

Packages  This Package  Prev  Next  Index
Java API Document (HTML generated by dkramer on April 22, 1996)
Copyright © 1996 Sun Microsystems, Inc. All rights reserved
Please send any comments or corrections to