|
Java プラットフォーム 1.2 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--java.io.InputStream | +--java.io.FilterInputStream | +--java.util.zip.InflaterInputStream
このクラスは、deflate 圧縮形式で圧縮解除されたデータのストリームフィルタを実装します。GZIPInputStream などのほかの圧縮解除フィルタはこのクラスに基づいています。
Inflater
フィールドの概要 | |
protected byte[] |
buf
圧縮解除に使用する入力バッファです。 |
protected Inflater |
inf
このストリームに使用するデコンプレッサです。 |
protected int |
len
入力バッファの長さです。 |
クラス java.io.FilterInputStream から継承したフィールド |
in |
コンストラクタの概要 | |
InflaterInputStream(InputStream in)
デフォルトのデコンプレッサおよびバッファサイズで、新しい入力ストリームを作成します |
|
InflaterInputStream(InputStream in,
Inflater inf)
指定されたデコンプレッサおよびデフォルトのバッファサイズで、新しい入力ストリームを作成します |
|
InflaterInputStream(InputStream in,
Inflater inf,
int size)
指定されたデコンプレッサおよびバッファサイズで、新しい入力ストリームを作成します。 |
メソッドの概要 | |
int |
available()
EOF に達したあとで呼び出した場合は 0 を返します。 |
void |
close()
入力ストリームを閉じます。 |
protected void |
fill()
入力バッファを、圧縮解除するデータで満たします。 |
int |
read()
圧縮解除データのバイトを読み込みます。 |
int |
read(byte[] b,
int off,
int len)
圧縮解除データをバイト配列に読み込みます。 |
long |
skip(long n)
圧縮解除データの指定されたバイト数をスキップします。 |
クラス java.io.FilterInputStream から継承したメソッド |
mark,
markSupported,
read,
reset |
クラス java.lang.Object から継承したメソッド |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
フィールドの詳細 |
protected Inflater inf
protected byte[] buf
protected int len
コンストラクタの詳細 |
public InflaterInputStream(InputStream in, Inflater inf, int size)
in
- 入力ストリームinf
- デコンプレッサ (インフレータ)size
- 入力バッファサイズpublic InflaterInputStream(InputStream in, Inflater inf)
in
- 入力ストリームinf
- デコンプレッサ (インフレータ)public InflaterInputStream(InputStream in)
メソッドの詳細 |
public int read() throws IOException
public int read(byte[] b, int off, int len) throws IOException
b
- データが読み込まれるバッファoff
- データの開始オフセットlen
- 読み込まれる最大バイト数public int available() throws IOException
このメソッドは、ブロックなしで読み込める実際のバイト数を返すためのものではありません。
public long skip(long n) throws IOException
n
- スキップされるバイト数public void close() throws IOException
protected void fill() throws IOException
|
Java プラットフォーム 1.2 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |