public class ProgressReportingInputStream extends FilterInputStream
このクラスはIIJ GIOストレージ&アナリシスサービスのクライアントで使用されてきました。
このクラスの登場によりProgressReportingInputStream
は
廃止予定となりました。
in
Constructor and Description |
---|
ProgressReportingInputStream(InputStream in,
ProgressListenerCallbackExecutor listenerCallbackExecutor)
新しい進捗状況報告用の入力ストリームを生成します。
それは指定された入力ストリームを単純にラップし、
転送したバイト数を非同期にリスナーに通知するために
指定したリスナーのコールバック実行を使用します。
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
getFireCompletedEvent()
この入力ストリームのデータが尽きた時に
この入力ストリームが
ProgressEvent.COMPLETED_EVENT_CODE コードを持つ
イベントを点火するかどうかを取得します。
デフォルトでは、このストリームによって完了イベントは点火されません。 |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
void |
setFireCompletedEvent(boolean fireCompletedEvent)
このInputStreamのデータが尽きた時に
このInputStreamが
ProgressEvent.COMPLETED_EVENT_CODE コードを持つ
イベントを点火するかどうかを設定します。
デフォルトでは、このストリームによって完了イベントは点火されません。 |
available, mark, markSupported, read, skip
public ProgressReportingInputStream(InputStream in, ProgressListenerCallbackExecutor listenerCallbackExecutor)
in
- ラップする入力ストリームlistenerCallbackExecutor
- 進捗状況について通知するリスナーをラップするリスナーのコールバック実行public boolean getFireCompletedEvent()
ProgressEvent.COMPLETED_EVENT_CODE
コードを持つ
イベントを点火するかどうかを取得します。
デフォルトでは、このストリームによって完了イベントは点火されません。public void setFireCompletedEvent(boolean fireCompletedEvent)
ProgressEvent.COMPLETED_EVENT_CODE
コードを持つ
イベントを点火するかどうかを設定します。
デフォルトでは、このストリームによって完了イベントは点火されません。fireCompletedEvent
- このInputStreamがストリームが完全に読み取られたことを示すために
イベントを点火するかどうかpublic int read() throws IOException
read
in class FilterInputStream
IOException
public void reset() throws IOException
reset
in class FilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class FilterInputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterInputStream
IOException
Copyright © 2018. All rights reserved.