W3Cschool
恭喜您成為首批注冊(cè)用戶
獲得88經(jīng)驗(yàn)值獎(jiǎng)勵(lì)
java.lang.Object
|---java.lang.Throwable
|---|---java.lang.Exception
|---|---|---java.io.IOException
|---|---|---|---java.io.InterruptedIOException
public class InterruptedIOException
extends IOException
表示 I/O 操作已被中斷。 拋出 InterruptedIOException 以指示輸入或輸出傳輸已終止,因?yàn)閳?zhí)行它的線程被中斷。 字段 bytesTransferred 指示在中斷發(fā)生之前成功傳輸了多少字節(jié)。
Since:
JDK1.0
修飾符和類型 | 字段 | 描述 |
---|---|---|
int | bytesTransferred | 報(bào)告在中斷之前作為 I/O 操作的一部分傳輸了多少字節(jié)。 |
構(gòu)造函數(shù) | 描述 |
---|---|
InterruptedIOException() | 構(gòu)造一個(gè)帶有 null 作為其錯(cuò)誤詳細(xì)消息的 InterruptedIOException。 |
InterruptedIOException(String s) | 構(gòu)造帶有指定詳細(xì)消息的 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 |
public int bytesTransferred
報(bào)告在中斷之前作為 I/O 操作的一部分傳輸了多少字節(jié)。
public InterruptedIOException()
構(gòu)造一個(gè)帶有 null 作為其錯(cuò)誤詳細(xì)消息的 InterruptedIOException。
public InterruptedIOException(String s)
構(gòu)造帶有指定詳細(xì)消息的 InterruptedIOException。 字符串 s 可以稍后通過 java.lang.Throwable 類的 Throwable.getMessage() 方法檢索。
參數(shù):
參數(shù)名稱 | 參數(shù)描述 |
---|---|
s | 詳細(xì)信息。 |
Copyright©2021 w3cschool編程獅|閩ICP備15016281號(hào)-3|閩公網(wǎng)安備35020302033924號(hào)
違法和不良信息舉報(bào)電話:173-0602-2364|舉報(bào)郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號(hào)
聯(lián)系方式:
更多建議: