java.io
クラス InterruptedIOException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.io.InterruptedIOException
- すべての実装されたインタフェース:
- Serializable
- 直系の既知のサブクラス:
- SocketTimeoutException
public class InterruptedIOException
- extends IOException
入出力処理で割り込みが発生したことを通知するシグナルを発生させます。入力転送または出力転送を実行するスレッドで割り込みがあり、転送が終了したことを示すために、InterruptedIOException
がスローされます。bytesTransferred
フィールドは、割り込みの発生前に転送に成功したバイト数を示します。
- 導入されたバージョン:
- JDK1.0
- 関連項目:
InputStream
,
OutputStream
,
Thread.interrupt()
,
直列化された形式
クラス java.lang.Throwable から継承されたメソッド |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
bytesTransferred
public int bytesTransferred
- 入出力処理で割り込みが発生する前にその処理の一部として転送されたバイト数を報告します。
InterruptedIOException
public InterruptedIOException()
- エラー詳細メッセージとして
null
を設定して InterruptedIOException
を構築します。
InterruptedIOException
public InterruptedIOException(String s)
- 指定された詳細メッセージを持つ
InterruptedIOException
を構築します。文字列 s
は、java.lang.Throwable
クラスの Throwable.getMessage()
メソッドを使ってあとで取得できます。
- パラメータ:
s
- 詳細メッセージ
Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. Use of this specification is subject to license terms.