java.io
Class InterruptedIOException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by java.io.InterruptedIOException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SocketTimeoutException

public class InterruptedIOException
extends IOException

This exception is thrown when a in process I/O operation is interrupted for some reason. The field bytesTransferred will contain the number of bytes that were read/written prior to the interruption.

See Also:
Thread.interrupt(), Serialized Form

Field Summary
 int bytesTransferred
          The number of bytes read/written prior to the interruption.
 
Constructor Summary
InterruptedIOException()
          Create an extends without a descriptive error message.
InterruptedIOException(String message)
          Create an exception with a descriptive error message.
 
Method Summary
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

bytesTransferred

public int bytesTransferred
The number of bytes read/written prior to the interruption.

Constructor Detail

InterruptedIOException

public InterruptedIOException()
Create an extends without a descriptive error message.


InterruptedIOException

public InterruptedIOException(String message)
Create an exception with a descriptive error message.

Parameters:
message - the descriptive error message