|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
java.util.zip.InflaterInputStream
java.util.zip.GZIPInputStream
public class GZIPInputStream
このクラスは、GZIP ファイル形式で圧縮されたデータを読み込むためのストリームフィルタを実装します。
InflaterInputStream| フィールドの概要 | |
|---|---|
protected CRC32 |
crc
圧縮解除されたデータに使用する CRC-32 です。 |
protected boolean |
eos
入力ストリームの終端を表します。 |
static int |
GZIP_MAGIC
GZIP のヘッダマジック番号です。 |
| クラス java.util.zip.InflaterInputStream から継承されたフィールド |
|---|
buf, inf, len |
| クラス java.io.FilterInputStream から継承されたフィールド |
|---|
in |
| コンストラクタの概要 | |
|---|---|
GZIPInputStream(InputStream in)
デフォルトのバッファサイズで新しい入力ストリームを作成します。 |
|
GZIPInputStream(InputStream in,
int size)
指定されたバッファサイズで新しい入力ストリームを作成します。 |
|
| メソッドの概要 | |
|---|---|
void |
close()
この入力ストリームを閉じて、そのストリームに関連するすべてのシステムリソースを解放します。 |
int |
read(byte[] buf,
int off,
int len)
圧縮解除されたデータをバイト配列に読み込みます。 |
| クラス java.util.zip.InflaterInputStream から継承されたメソッド |
|---|
available, fill, mark, markSupported, read, reset, skip |
| クラス java.io.FilterInputStream から継承されたメソッド |
|---|
read |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
protected CRC32 crc
protected boolean eos
public static final int GZIP_MAGIC
| コンストラクタの詳細 |
|---|
public GZIPInputStream(InputStream in,
int size)
throws IOException
in - 入力ストリームsize - 入力バッファサイズ
IOException - 入出力エラーが発生した場合
IllegalArgumentException - サイズが 0 以下の場合
public GZIPInputStream(InputStream in)
throws IOException
in - 入力ストリーム
IOException - 入出力エラーが発生した場合| メソッドの詳細 |
|---|
public int read(byte[] buf,
int off,
int len)
throws IOException
InflaterInputStream 内の readbuf - データの読み取り先のバッファoff - データの開始オフセットlen - 読み込まれる最大バイト数
IOException - 入出力エラーが発生した場合、または圧縮入力データが壊れている場合FilterInputStream.in
public void close()
throws IOException
Closeable 内の closeInflaterInputStream 内の closeIOException - 入出力エラーが発生した場合FilterInputStream.in
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。