Package java.io

Class InterruptedIOException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ConnectTimeoutException, SocketTimeoutException

public class InterruptedIOException
extends IOException
Signals that a blocking I/O operation has been interrupted. The number of bytes that were transferred successfully before the interruption took place is stored in a field of the exception.
See Also:
Serialized Form
  • Field Details

    • bytesTransferred

      public int bytesTransferred
      The number of bytes transferred before the I/O interrupt occurred.
  • Constructor Details

    • InterruptedIOException

      public InterruptedIOException()
      Constructs a new instance.
    • InterruptedIOException

      public InterruptedIOException​(String detailMessage)
      Constructs a new instance with the given detail message.
    • InterruptedIOException

      public InterruptedIOException​(String detailMessage, Throwable cause)
      Constructs a new instance with given detail message and cause.