鸿蒙OS InterruptedIOException

InterruptedIOException

java.lang.Object

|—java.lang.Throwable

|—|—java.lang.Exception

|—|—|—java.io.IOException

|—|—|—|—java.io.InterruptedIOException

public class InterruptedIOException
extends IOException

表示 I/O 操作已被中断。 抛出 InterruptedIOException 以指示输入或输出传输已终止,因为执行它的线程被中断。 字段 bytesTransferred 指示在中断发生之前成功传输了多少字节。

Since:

JDK1.0

字段摘要

修饰符和类型 字段 描述
int bytesTransferred 报告在中断之前作为 I/O 操作的一部分传输了多少字节。

构造函数摘要

构造函数 描述
InterruptedIOException() 构造一个带有 null 作为其错误详细消息的 InterruptedIOException。
InterruptedIOException(String s) 构造带有指定详细消息的 InterruptedIOException。

方法总结

从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从类 java.lang.Throwable 继承的方法
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

字段详细信息

bytesTransferred

public int bytesTransferred

报告在中断之前作为 I/O 操作的一部分传输了多少字节。

构造函数详细信息

InterruptedIOException

public InterruptedIOException()

构造一个带有 null 作为其错误详细消息的 InterruptedIOException。

InterruptedIOException

public InterruptedIOException(String s)

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

参数:

参数名称 参数描述
s 详细信息。
版权声明:本文采用知识共享 署名4.0国际许可协议 [BY-NC-SA] 进行授权
文章名称:《鸿蒙OS InterruptedIOException》
文章链接:https://zhuji.vsping.com/314759.html
本站资源仅供个人学习交流,请于下载后24小时内删除,不允许用于商业用途,否则法律问题自行承担。