23 * questions.
24 */
25
26 package java.io;
27
28 /**
29 * Signals that an end of file or end of stream has been reached
30 * unexpectedly during input.
31 * <p>
32 * This exception is mainly used by data input streams to signal end of
33 * stream. Note that many other input operations return a special value on
34 * end of stream rather than throwing an exception.
35 *
36 * @author Frank Yellin
37 * @see java.io.DataInputStream
38 * @see java.io.IOException
39 * @since 1.0
40 */
41 public
42 class EOFException extends IOException {
43 private static final long serialVersionUID = 6433858223774886977L;
44
45 /**
46 * Constructs an <code>EOFException</code> with <code>null</code>
47 * as its error detail message.
48 */
49 public EOFException() {
50 super();
51 }
52
53 /**
54 * Constructs an <code>EOFException</code> with the specified detail
55 * message. The string <code>s</code> may later be retrieved by the
56 * <code>{@link java.lang.Throwable#getMessage}</code> method of class
57 * <code>java.lang.Throwable</code>.
58 *
59 * @param s the detail message.
60 */
61 public EOFException(String s) {
62 super(s);
|
23 * questions.
24 */
25
26 package java.io;
27
28 /**
29 * Signals that an end of file or end of stream has been reached
30 * unexpectedly during input.
31 * <p>
32 * This exception is mainly used by data input streams to signal end of
33 * stream. Note that many other input operations return a special value on
34 * end of stream rather than throwing an exception.
35 *
36 * @author Frank Yellin
37 * @see java.io.DataInputStream
38 * @see java.io.IOException
39 * @since 1.0
40 */
41 public
42 class EOFException extends IOException {
43 @java.io.Serial
44 private static final long serialVersionUID = 6433858223774886977L;
45
46 /**
47 * Constructs an <code>EOFException</code> with <code>null</code>
48 * as its error detail message.
49 */
50 public EOFException() {
51 super();
52 }
53
54 /**
55 * Constructs an <code>EOFException</code> with the specified detail
56 * message. The string <code>s</code> may later be retrieved by the
57 * <code>{@link java.lang.Throwable#getMessage}</code> method of class
58 * <code>java.lang.Throwable</code>.
59 *
60 * @param s the detail message.
61 */
62 public EOFException(String s) {
63 super(s);
|