/[classpath]/classpath/java/io/InterruptedIOException.java
ViewVC logotype

Diff of /classpath/java/io/InterruptedIOException.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by mark, Tue Jan 22 22:26:59 2002 UTC revision 1.6 by ericb, Sun Feb 24 04:25:16 2002 UTC
# Line 1  Line 1 
1  /* InterruptedIOException.java -- An I/O operation was interrupted.  /* InterruptedIOException.java -- an I/O operation was interrupted
2     Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.     Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 7  GNU Classpath is free software; you can Line 7  GNU Classpath is free software; you can
7  it under the terms of the GNU General Public License as published by  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2, or (at your option)  the Free Software Foundation; either version 2, or (at your option)
9  any later version.  any later version.
10    
11  GNU Classpath is distributed in the hope that it will be useful, but  GNU Classpath is distributed in the hope that it will be useful, but
12  WITHOUT ANY WARRANTY; without even the implied warranty of  WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Line 38  exception statement from your version. * Line 38  exception statement from your version. *
38    
39  package java.io;  package java.io;
40    
 /* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3  
  * "The Java Language Specification", ISBN 0-201-63451-1  
  * Status:  Complete to 1.1.  
  */  
   
41  /**  /**
42    * This exception is thrown when a in process I/O operation is    * This exception is thrown when a in process I/O operation is interrupted
43    * interrupted for some reason.  The field bytesTransferred will contain    * for some reason.  The field bytesTransferred will contain the number of
44    * the number of bytes that were read/written prior to the interruption.    * bytes that were read/written prior to the interruption.
45    *    *
46    * @version 0.0    * @author Aaron M. Renn <arenn@urbanophile.com>
   *  
   * @author Aaron M. Renn (arenn@urbanophile.com)  
47    * @author Tom Tromey <tromey@cygnus.com>    * @author Tom Tromey <tromey@cygnus.com>
48    * @date September 24, 1998    * @see Thread#interrupt()
49      * @status updated to 1.4
50    */    */
51  public class InterruptedIOException extends IOException  public class InterruptedIOException extends IOException
52  {  {
53      /**
54  private static final long serialVersionUID = 4020568460727500567L;     * Compatible with JDK 1.0+.
55       */
56  /*    private static final long serialVersionUID = 4020568460727500567L;
57   * Instance Variables  
58   */    /**
59       * The number of bytes read/written prior to the interruption.
60  /**     *
61    * The number of bytes read/written prior to the interruption     * @serial count of bytes successfully transferred
62    */     */
63  public int bytesTransferred;    public int bytesTransferred;
64    
65  /*************************************************************************/    /**
66       * Create an extends without a descriptive error message.
67  /*     */
68   * Constructors    public InterruptedIOException()
69   */    {
70      }
71  /**  
72    * Create a new InterruptedIOException without a descriptive error message    /**
73    */     * Create an exception with a descriptive error message.
74  public     *
75  InterruptedIOException()     * @param message the descriptive error message
76  {     */
77    super();    public InterruptedIOException(String message)
78  }    {
79        super(message);
80  /*************************************************************************/    }
81    
82  /**    /**
83    * Create a new InterruptedIOException with a descriptive error message String     * Create an exception with a descriptive error message and count of
84    *     * bytes transferred.
85    * @param message The descriptive error message     *
86    */     * @param message the descriptive error message
87  public     * @param bytesTransferred number of bytes tranferred before interruption
88  InterruptedIOException(String message)     */
89  {    InterruptedIOException(String message, int bytesTransferred)
90    super(message);    {
91  }      super(message);
92        this.bytesTransferred = bytesTransferred;
93  /*************************************************************************/    }
   
 /**  
   * Create a new InterruptedIOException with a descriptive error message  
   * String.  Also sets the value of the bytesTransferred field.  
   *  
   * @param message The descriptive error message  
   * @param bytesTransferred The number of bytes tranferred before the interruption  
   */  
 InterruptedIOException(String message, int bytesTransferred)  
 {  
   super(message);  
   this.bytesTransferred = bytesTransferred;  
 }  
   
94  } // class InterruptedIOException  } // class InterruptedIOException
   

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26