CHAPTER 22: The Package java.io Previous
Previous
Java Language
Java Language
Index
Index
Next
Next

22.28 The Class java.io.EOFException

22.28.1 EOFException , 22.28.2 EOFException

An EOFException is thrown to indicate that an input operation has encountered end of file. Note that some Java input operations react to end of file by returning a distinguished value (such as -1) rather than by throwing an exception.

public class EOFException extends IOException {
	public EOFException();
	public EOFException(String s);
}


22.28.1 EOFException

public EOFException()

This constructor initializes a newly created EOFException with null as its error message string.


22.28.2 EOFException

public EOFException(String s)

This constructor initializes a newly created EOFException by saving a reference to the error message string s for later retrieval by the getMessage method (S20.22.3).

© 1996 Sun Microsystems, Inc. All rights reserved.