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详细消息的InterruptedIOException。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic InterruptedIOException()
InterruptedIOException与
null作为其错误详细信息。
public InterruptedIOException(String s)
InterruptedIOException详细消息的InterruptedIOException。
字符串s可以稍后通过Throwable.getMessage()方法java.lang.Throwable 。
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.