JavaTM 2 Platform
Standard Ed. 5.0

java.io
类 InterruptedIOException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 java.io.IOException
              继承者 java.io.InterruptedIOException
所有已实现的接口:
Serializable

public class InterruptedIOException
extends IOException

I/O 操作已中断信号。抛出 InterruptedIOException 指示输入或输出传输已经终止,原因是执行此操作的线程中断。字段 bytesTransferred 指示在发生中断之前已成功传输了多少字节。

从以下版本开始:
JDK1.0
另请参见:
InputStream, OutputStream, Thread.interrupt(), 序列化表格

字段摘要
 int bytesTransferred
          报告 I/O 操作中断之前传输了其中多少字节。
 
构造方法摘要
InterruptedIOException()
          构造一个 InterruptedIOException,使用 null 作为其错误消息。
InterruptedIOException(String s)
          构造带指定详细消息的 InterruptedIOException
 
方法摘要
 
从类 java.lang.Throwable 继承的方法
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

bytesTransferred

public int bytesTransferred
报告 I/O 操作中断之前传输了其中多少字节。

构造方法详细信息

InterruptedIOException

public InterruptedIOException()
构造一个 InterruptedIOException,使用 null 作为其错误消息。


InterruptedIOException

public InterruptedIOException(String s)
构造带指定详细消息的 InterruptedIOException。稍后可以通过 java.lang.Throwable 类的 Throwable.getMessage() 方法检索字符串 s

参数:
s - 详细消息。

JavaTM 2 Platform
Standard Ed. 5.0

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java 2 SDK SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策