home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connection Student Program / ADC Tools Sampler CD Disk 3 1999.iso / Metrowerks CodeWarrior / Java Support / Java_Source / Java2 / src / java / io / EOFException.java < prev    next >
Encoding:
Java Source  |  1999-05-28  |  1.7 KB  |  58 lines  |  [TEXT/CWIE]

  1. /*
  2.  * @(#)EOFException.java    1.7 98/06/29
  3.  *
  4.  * Copyright 1995-1998 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.  * <p>
  26.  * Note that some input operations react to end-of-file by returning
  27.  * a distinguished value (such as <code>-1</code>) rather than by
  28.  * throwing an exception.
  29.  *
  30.  * @author  Frank Yellin
  31.  * @version 1.7, 06/29/98
  32.  * @see     java.io.DataInputStream
  33.  * @see     java.io.IOException
  34.  * @since   JDK1.0
  35.  */
  36. public
  37. class EOFException extends IOException {
  38.     /**
  39.      * Constructs an <code>EOFException</code> with <code>null</code>
  40.      * as its error detail message.
  41.      */
  42.     public EOFException() {
  43.     super();
  44.     }
  45.  
  46.     /**
  47.      * Constructs an <code>EOFException</code> with the specified detail
  48.      * message. The string <code>s</code> may later be retrieved by the
  49.      * <code>{@link java.lang.Throwable#getMessage}</code> method of class
  50.      * <code>java.lang.Throwable</code>.
  51.      *
  52.      * @param   s   the detail message.
  53.      */
  54.     public EOFException(String s) {
  55.     super(s);
  56.     }
  57. }
  58.