rt/emul/mini/src/main/java/java/io/EOFException.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Tue, 26 Feb 2013 16:54:16 +0100
changeset 772 d382dacfd73f
parent 554 emul/mini/src/main/java/java/io/EOFException.java@05224402145d
permissions -rw-r--r--
Moving modules around so the runtime is under one master pom and can be built without building other modules that are in the repository
jtulach@147
     1
/*
jtulach@147
     2
 * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
jtulach@147
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
jtulach@147
     4
 *
jtulach@147
     5
 * This code is free software; you can redistribute it and/or modify it
jtulach@147
     6
 * under the terms of the GNU General Public License version 2 only, as
jtulach@147
     7
 * published by the Free Software Foundation.  Oracle designates this
jtulach@147
     8
 * particular file as subject to the "Classpath" exception as provided
jtulach@147
     9
 * by Oracle in the LICENSE file that accompanied this code.
jtulach@147
    10
 *
jtulach@147
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
jtulach@147
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
jtulach@147
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
jtulach@147
    14
 * version 2 for more details (a copy is included in the LICENSE file that
jtulach@147
    15
 * accompanied this code).
jtulach@147
    16
 *
jtulach@147
    17
 * You should have received a copy of the GNU General Public License version
jtulach@147
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
jtulach@147
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
jtulach@147
    20
 *
jtulach@147
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
jtulach@147
    22
 * or visit www.oracle.com if you need additional information or have any
jtulach@147
    23
 * questions.
jtulach@147
    24
 */
jtulach@147
    25
jtulach@147
    26
package java.io;
jtulach@147
    27
jtulach@147
    28
/**
jtulach@147
    29
 * Signals that an end of file or end of stream has been reached
jtulach@147
    30
 * unexpectedly during input.
jtulach@147
    31
 * <p>
jtulach@147
    32
 * This exception is mainly used by data input streams to signal end of
jtulach@147
    33
 * stream. Note that many other input operations return a special value on
jtulach@147
    34
 * end of stream rather than throwing an exception.
jtulach@147
    35
 * <p>
jtulach@147
    36
 *
jtulach@147
    37
 * @author  Frank Yellin
jtulach@147
    38
 * @see     java.io.DataInputStream
jtulach@147
    39
 * @see     java.io.IOException
jtulach@147
    40
 * @since   JDK1.0
jtulach@147
    41
 */
jtulach@147
    42
public
jtulach@147
    43
class EOFException extends IOException {
jtulach@147
    44
    private static final long serialVersionUID = 6433858223774886977L;
jtulach@147
    45
jtulach@147
    46
    /**
jtulach@147
    47
     * Constructs an <code>EOFException</code> with <code>null</code>
jtulach@147
    48
     * as its error detail message.
jtulach@147
    49
     */
jtulach@147
    50
    public EOFException() {
jtulach@147
    51
        super();
jtulach@147
    52
    }
jtulach@147
    53
jtulach@147
    54
    /**
jtulach@147
    55
     * Constructs an <code>EOFException</code> with the specified detail
jtulach@147
    56
     * message. The string <code>s</code> may later be retrieved by the
jtulach@147
    57
     * <code>{@link java.lang.Throwable#getMessage}</code> method of class
jtulach@147
    58
     * <code>java.lang.Throwable</code>.
jtulach@147
    59
     *
jtulach@147
    60
     * @param   s   the detail message.
jtulach@147
    61
     */
jtulach@147
    62
    public EOFException(String s) {
jtulach@147
    63
        super(s);
jtulach@147
    64
    }
jtulach@147
    65
}