APIdia Launch Partner
Top Description Fields Constructors
java.io

public Class InterruptedIOException

extends IOException
Class Inheritance
Known Direct Subclasses
java.net.SocketTimeoutException

Signals that an I/O operation has been interrupted. An InterruptedIOException is thrown to indicate that an input or output transfer has been terminated because the thread performing it was interrupted. The field bytesTransferred indicates how many bytes were successfully transferred before the interruption occurred.
Since
1.0
See Also
java.io.InputStream, java.io.OutputStream, java.lang.Thread#interrupt()

Field Summary

Modifier and TypeField and Description
public int
bytesTransferred

Reports how many bytes had been transferred as part of the I/O operation before it was interrupted.

private static final long

Constructor Summary

AccessConstructor and Description
public
InterruptedIOException()

Constructs an InterruptedIOException with null as its error detail message.

public
InterruptedIOException(String
the detail message.
s
)

Constructs an InterruptedIOException with the specified detail message.

Field Detail

bytesTransferredback to summary
public int bytesTransferred

Reports how many bytes had been transferred as part of the I/O operation before it was interrupted.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.io.IOException.serialVersionUID.

Annotations
@Serial

Constructor Detail

InterruptedIOExceptionback to summary
public InterruptedIOException()

Constructs an InterruptedIOException with null as its error detail message.

InterruptedIOExceptionback to summary
public InterruptedIOException(String s)

Constructs an InterruptedIOException with the specified detail message. The string s can be retrieved later by the java.lang.Throwable#getMessage method of class java.lang.Throwable.

Parameters
s:String

the detail message.