java.io
Class InterruptedIOException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.io.InterruptedIOException
- All Implemented Interfaces:
- Serializable
- public class InterruptedIOException
- extends IOException
This IO exception is thrown when a program reading or writing to a stream is
interrupted. This is also thrown when a socket timeout occurs before the
request has completed.
- See Also:
- Serialized Form
Field Summary |
int |
bytesTransferred
The number of bytes transferred before the IO interrupt occurred. |
Constructor Summary |
InterruptedIOException()
Constructs a new instance of this class with its walkback filled in. |
InterruptedIOException(java.lang.String detailMessage)
Constructs a new instance of this class with its walkback and message
filled in. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
bytesTransferred
public int bytesTransferred
- The number of bytes transferred before the IO interrupt occurred. The
default is 0 but the value may be filled in by the caller of the
constructor.
InterruptedIOException
public InterruptedIOException()
- Constructs a new instance of this class with its walkback filled in.
InterruptedIOException
public InterruptedIOException(java.lang.String detailMessage)
- Constructs a new instance of this class with its walkback and message
filled in.
- Parameters:
detailMessage
- The detail message for the exception.