< prev index next >

src/java.base/share/classes/java/io/InterruptedIOException.java

Print this page




  24  */
  25 
  26 package java.io;
  27 
  28 /**
  29  * Signals that an I/O operation has been interrupted. An
  30  * <code>InterruptedIOException</code> is thrown to indicate that an
  31  * input or output transfer has been terminated because the thread
  32  * performing it was interrupted. The field {@link #bytesTransferred}
  33  * indicates how many bytes were successfully transferred before
  34  * the interruption occurred.
  35  *
  36  * @author  unascribed
  37  * @see     java.io.InputStream
  38  * @see     java.io.OutputStream
  39  * @see     java.lang.Thread#interrupt()
  40  * @since   1.0
  41  */
  42 public
  43 class InterruptedIOException extends IOException {

  44     private static final long serialVersionUID = 4020568460727500567L;
  45 
  46     /**
  47      * Constructs an <code>InterruptedIOException</code> with
  48      * <code>null</code> as its error detail message.
  49      */
  50     public InterruptedIOException() {
  51         super();
  52     }
  53 
  54     /**
  55      * Constructs an <code>InterruptedIOException</code> with the
  56      * specified detail message. The string <code>s</code> can be
  57      * retrieved later by the
  58      * <code>{@link java.lang.Throwable#getMessage}</code>
  59      * method of class <code>java.lang.Throwable</code>.
  60      *
  61      * @param   s   the detail message.
  62      */
  63     public InterruptedIOException(String s) {


  24  */
  25 
  26 package java.io;
  27 
  28 /**
  29  * Signals that an I/O operation has been interrupted. An
  30  * <code>InterruptedIOException</code> is thrown to indicate that an
  31  * input or output transfer has been terminated because the thread
  32  * performing it was interrupted. The field {@link #bytesTransferred}
  33  * indicates how many bytes were successfully transferred before
  34  * the interruption occurred.
  35  *
  36  * @author  unascribed
  37  * @see     java.io.InputStream
  38  * @see     java.io.OutputStream
  39  * @see     java.lang.Thread#interrupt()
  40  * @since   1.0
  41  */
  42 public
  43 class InterruptedIOException extends IOException {
  44     @java.io.Serial
  45     private static final long serialVersionUID = 4020568460727500567L;
  46 
  47     /**
  48      * Constructs an <code>InterruptedIOException</code> with
  49      * <code>null</code> as its error detail message.
  50      */
  51     public InterruptedIOException() {
  52         super();
  53     }
  54 
  55     /**
  56      * Constructs an <code>InterruptedIOException</code> with the
  57      * specified detail message. The string <code>s</code> can be
  58      * retrieved later by the
  59      * <code>{@link java.lang.Throwable#getMessage}</code>
  60      * method of class <code>java.lang.Throwable</code>.
  61      *
  62      * @param   s   the detail message.
  63      */
  64     public InterruptedIOException(String s) {
< prev index next >