APIdia Launch Partner
Top Description Fields Constructors
java.io

public Class EOFException

extends IOException
Class Inheritance

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

This exception is mainly used by data input streams to signal end of stream. Note that many other input operations return a special value on end of stream rather than throwing an exception.

Author
Frank Yellin
Since
1.0
See Also
java.io.DataInputStream, java.io.IOException

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
EOFException()

Constructs an EOFException with null as its error detail message.

public
EOFException(String
the detail message.
s
)

Constructs an EOFException with the specified detail message.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.io.IOException.serialVersionUID.

Annotations
@Serial

Constructor Detail

EOFExceptionback to summary
public EOFException()

Constructs an EOFException with null as its error detail message.

EOFExceptionback to summary
public EOFException(String s)

Constructs an EOFException with the specified detail message. The string s may later be retrieved by the java.lang.Throwable#getMessage method of class java.lang.Throwable.

Parameters
s:String

the detail message.