- 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.
Field SummaryModifier and TypeFieldDescription
intReports 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.
(String s)Constructs an
InterruptedIOExceptionwith the specified detail message. The string
scan be retrieved later by the
Throwable.getMessage()method of class
s- the detail message.