- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- java.io.InterruptedIOException
-
- All Implemented Interfaces:
-
Serializable
- 已知直接子类:
-
SocketTimeoutException
public class InterruptedIOException extends IOException
表示I / O操作已中断。 抛出一个InterruptedIOException,表示输入或输出传输已被终止,因为执行它的线程被中断。 字段bytesTransferred指示在中断发生之前成功传送了多少个字节。- 从以下版本开始:
- 1.0
- 另请参见:
-
InputStream,OutputStream,Thread.interrupt(), Serialized Form
-
-
Field Summary
Fields Modifier and Type Field 描述 intbytesTransferred报告中断之前作为I / O操作的一部分传输了多少个字节。
-
构造方法摘要
构造方法 Constructor 描述 InterruptedIOException()构造InterruptedIOException其中包含null作为其错误详细消息。InterruptedIOException(String s)构造具有指定详细消息的InterruptedIOException。
-
方法摘要
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
构造方法详细信息
-
InterruptedIOException
public InterruptedIOException()
构造一个InterruptedIOException其中包含null作为其错误详细消息。
-
InterruptedIOException
public InterruptedIOException(String s)
构造具有指定详细消息的InterruptedIOException。 字符串s可以稍后由检索类的方法Throwable.getMessage()java.lang.Throwable。- 参数
-
s- 详细信息。
-
-