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

  1. /*
  2.  * @(#)InterruptedIOException.java    1.9 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 I/O operation has been interrupted. 
  19.  *
  20.  * @author  unascribed
  21.  * @version 1.9, 03/18/98
  22.  * @see     java.io.InputStream
  23.  * @see     java.io.OutputStream
  24.  * @see     java.lang.Thread#interrupt()
  25.  * @since   JDK1.0
  26.  */
  27. public
  28. class InterruptedIOException extends IOException {
  29.     /**
  30.      * Constructs an <code>InterruptedIOException</code> with no detail 
  31.      * message. 
  32.      */
  33.     public InterruptedIOException() {
  34.     super();
  35.     }
  36.  
  37.     /**
  38.      * Constructs an <code>InterruptedIOException</code> with the 
  39.      * specified detail message. 
  40.      *
  41.      * @param   s   the detail message.
  42.      */
  43.     public InterruptedIOException(String s) {
  44.     super(s);
  45.     }
  46.  
  47.     /**
  48.      * Reports how many bytes had been transferred as part of the I/O 
  49.      * operation before it was interrupted. 
  50.      */ 
  51.     public int bytesTransferred = 0;
  52. }
  53.