public class InterruptedIOException extends IOException
InterruptedIOException
是抛出一个输入或输出转移已终止,因为线程执行被中断。现场
bytesTransferred
表示多少字节被成功转移之前中断的。
InputStream
,
OutputStream
,
Thread.interrupt()
,
Serialized Form
Modifier and Type | Field and Description |
---|---|
int |
bytesTransferred
报告有多少字节已被转移作为I / O操作的一部分,在它被中断之前。
|
Constructor and Description |
---|
InterruptedIOException()
构建一个
InterruptedIOException
null 作为它的错误详细信息。
|
InterruptedIOException(String s)
构建一个指定详细信息的
InterruptedIOException 。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public InterruptedIOException()
InterruptedIOException
null
作为它的错误详细信息。
public InterruptedIOException(String s)
s
-详细信息。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.