RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
创新互联鸿蒙OS教程:鸿蒙OSInterruptedIOException

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

字段摘要

修饰符和类型 字段 描述
intbytesTransferred报告在中断之前作为 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详细信息。

标题名称:创新互联鸿蒙OS教程:鸿蒙OSInterruptedIOException
本文URL:http://www.jxjierui.cn/article/cocdsej.html