Package java.io
Class InterruptedIOException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.io.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 Summary
Fields Modifier and Type Field Description intbytesTransferredThe number of bytes transferred before the I/O interrupt occurred. -
Constructor Summary
Constructors Constructor Description InterruptedIOException()Constructs a new instance.InterruptedIOException(String detailMessage)Constructs a new instance with the given detail message.InterruptedIOException(String detailMessage, Throwable cause)Constructs a new instance with given detail message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
bytesTransferred
public int bytesTransferredThe number of bytes transferred before the I/O interrupt occurred.
-
-
Constructor Details
-
InterruptedIOException
public InterruptedIOException()Constructs a new instance. -
InterruptedIOException
Constructs a new instance with the given detail message. -
InterruptedIOException
Constructs a new instance with given detail message and cause.
-