- All Implemented Interfaces:
- Direct Known Subclasses:
public class InterruptedIOException extends IOException
Signals that an I/O operation has been interrupted. An
InterruptedIOExceptionis thrown to indicate that an input or output transfer has been terminated because the thread performing it was interrupted. The field
bytesTransferredindicates how many bytes were successfully transferred before the interruption occurred.
Fields Modifier and Type Field Description
bytesTransferredReports how many bytes had been transferred as part of the I/O operation before it was interrupted.
Methods declared in class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
bytesTransferredpublic int bytesTransferredReports how many bytes had been transferred as part of the I/O operation before it was interrupted.
InterruptedIOExceptionpublic InterruptedIOException()Constructs an
nullas its error detail message.
InterruptedIOExceptionpublic InterruptedIOException(String s)Constructs an
InterruptedIOExceptionwith the specified detail message. The string
scan be retrieved later by the
method of class
s- the detail message.