|
Foundation 1.1.2 | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
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, read, skip |
| クラス java.io.FilterInputStream から継承されたメソッド |
|---|
mark, markSupported, read, reset |
| クラス 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
InflaterInputStream 内の closeIOException - 入出力エラーが発生した場合FilterInputStream.in
|
Foundation 1.1.2 | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。