jtulach@147: /* jtulach@147: * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved. jtulach@147: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. jtulach@147: * jtulach@147: * This code is free software; you can redistribute it and/or modify it jtulach@147: * under the terms of the GNU General Public License version 2 only, as jtulach@147: * published by the Free Software Foundation. Oracle designates this jtulach@147: * particular file as subject to the "Classpath" exception as provided jtulach@147: * by Oracle in the LICENSE file that accompanied this code. jtulach@147: * jtulach@147: * This code is distributed in the hope that it will be useful, but WITHOUT jtulach@147: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or jtulach@147: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License jtulach@147: * version 2 for more details (a copy is included in the LICENSE file that jtulach@147: * accompanied this code). jtulach@147: * jtulach@147: * You should have received a copy of the GNU General Public License version jtulach@147: * 2 along with this work; if not, write to the Free Software Foundation, jtulach@147: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. jtulach@147: * jtulach@147: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA jtulach@147: * or visit www.oracle.com if you need additional information or have any jtulach@147: * questions. jtulach@147: */ jtulach@147: jtulach@147: package java.io; jtulach@147: jtulach@147: /** jtulach@147: * Signals that an end of file or end of stream has been reached jtulach@147: * unexpectedly during input. jtulach@147: *

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

jtulach@147: * jtulach@147: * @author Frank Yellin jtulach@147: * @see java.io.DataInputStream jtulach@147: * @see java.io.IOException jtulach@147: * @since JDK1.0 jtulach@147: */ jtulach@147: public jtulach@147: class EOFException extends IOException { jtulach@147: private static final long serialVersionUID = 6433858223774886977L; jtulach@147: jtulach@147: /** jtulach@147: * Constructs an EOFException with null jtulach@147: * as its error detail message. jtulach@147: */ jtulach@147: public EOFException() { jtulach@147: super(); jtulach@147: } jtulach@147: jtulach@147: /** jtulach@147: * Constructs an EOFException with the specified detail jtulach@147: * message. The string s may later be retrieved by the jtulach@147: * {@link java.lang.Throwable#getMessage} method of class jtulach@147: * java.lang.Throwable. jtulach@147: * jtulach@147: * @param s the detail message. jtulach@147: */ jtulach@147: public EOFException(String s) { jtulach@147: super(s); jtulach@147: } jtulach@147: }