home *** CD-ROM | disk | FTP | other *** search
/ Java 1.2 How-To / JavaHowTo.iso / 3rdParty / jbuilder / unsupported / JDK1.2beta3 / SOURCE / SRC.ZIP / java / io / EOFException.java < prev    next >
Encoding:
Java Source  |  1998-03-20  |  1.4 KB  |  51 lines

  1. /*
  2.  * @(#)EOFException.java    1.5 98/03/18
  3.  *
  4.  * Copyright 1995-1997 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  *
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.io;
  16.  
  17. /**
  18.  * Signals that an end of file or end of stream has been reached 
  19.  * unexpectedly during input. 
  20.  * <p>
  21.  * This exception is mainly used by data input streams, which 
  22.  * generally expect a binary file in a specific format, and for which 
  23.  * an end of stream is an unusual condition. Most other input streams 
  24.  * return a special value on end of stream. 
  25.  *
  26.  * @author  Frank Yellin
  27.  * @version 1.5, 03/18/98
  28.  * @see     java.io.DataInputStream
  29.  * @see     java.io.IOException
  30.  * @since   JDK1.0
  31.  */
  32. public
  33. class EOFException extends IOException {
  34.     /**
  35.      * Constructs an <code>EOFException</code> with no detail message. 
  36.      */
  37.     public EOFException() {
  38.     super();
  39.     }
  40.  
  41.     /**
  42.      * Constructs an <code>EOFException</code> with the specified detail
  43.      * message. 
  44.      *
  45.      * @param   s   the detail message.
  46.      */
  47.     public EOFException(String s) {
  48.     super(s);
  49.     }
  50. }
  51.