|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
java.util.zip.InflaterOutputStream
public class InflaterOutputStream
為解壓縮 "deflate" 壓縮格式存儲的資料實作輸出串流過濾器。
InflaterInputStream,
DeflaterInputStream,
DeflaterOutputStream| 欄位摘要 | |
|---|---|
protected byte[] |
buf
寫入未壓縮資料的輸出緩衝區。 |
protected Inflater |
inf
此串流的解壓縮器。 |
| 從類別 java.io.FilterOutputStream 繼承的欄位 |
|---|
out |
| 建構子摘要 | |
|---|---|
InflaterOutputStream(OutputStream out)
創建一個帶有預設解壓縮器和緩衝區大小的新輸出串流。 |
|
InflaterOutputStream(OutputStream out,
Inflater infl)
創建一個帶有指定解壓縮器和預設緩衝區大小的新輸出串流。 |
|
InflaterOutputStream(OutputStream out,
Inflater infl,
int bufLen)
創建一個帶有指定解壓縮器和緩衝區大小的新輸出串流。 |
|
| 方法摘要 | |
|---|---|
void |
close()
將剩餘未壓縮資料寫入輸出串流並關閉底層輸出串流。 |
void |
finish()
完成將未壓縮資料寫入輸出串流的操作,無需關閉底層串流。 |
void |
flush()
刷新此輸出串流,並強制寫出掛起的所有緩衝輸出位元組。 |
void |
write(byte[] b,
int off,
int len)
將 byte 陣列寫入未壓縮輸出串流。 |
void |
write(int b)
將位元組寫入未壓縮輸出串流。 |
| 從類別 java.io.FilterOutputStream 繼承的方法 |
|---|
write |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 欄位詳細資訊 |
|---|
protected final Inflater inf
protected final byte[] buf
| 建構子詳細資訊 |
|---|
public InflaterOutputStream(OutputStream out)
out - 要寫入未壓縮資料的輸出串流
NullPointerException - 如果 out 為 null
public InflaterOutputStream(OutputStream out,
Inflater infl)
out - 要讀入未壓縮資料的輸出串流infl - 此串流的解壓縮器 ("inflater")
NullPointerException - 如果 out 或 infl 為 null
public InflaterOutputStream(OutputStream out,
Inflater infl,
int bufLen)
out - 要寫入未壓縮資料的輸出串流infl - 此串流的解壓縮器 ("inflater")bufLen - 解壓縮緩衝區大小
IllegalArgumentException - 如果 bufLen <= 0
NullPointerException - 如果 out 或 infl 為 null| 方法詳細資訊 |
|---|
public void close()
throws IOException
Closeable 中的 closeFilterOutputStream 中的 closeIOException - 如果發生 I/O 錯誤FilterOutputStream.flush(),
FilterOutputStream.out
public void flush()
throws IOException
Flushable 中的 flushFilterOutputStream 中的 flushIOException - 如果發生 I/O 錯誤或者此串流已經關閉FilterOutputStream.out
public void finish()
throws IOException
IOException - 如果發生 I/O 錯誤或者此串流已經關閉
public void write(int b)
throws IOException
FilterOutputStream 中的 writeb - 一個要解壓縮並寫入輸出串流的壓縮資料位元組
IOException - 如果發生 I/O 錯誤或者此串流已經關閉
ZipException - 如果發生壓縮 (ZIP) 格式錯誤
public void write(byte[] b,
int off,
int len)
throws IOException
FilterOutputStream 中的 writeb - 套件含要解壓縮並寫入輸出串流的壓縮資料的緩衝區off - b 中壓縮資料的起始偏移量len - 要從 b 中解壓縮的位元組數
IndexOutOfBoundsException - 如果 off < 0、len < 0,或者 len > b.length - off
IOException - 如果發生 I/O 錯誤或者此串流已經關閉
NullPointerException - 如果 b 為 null
ZipException - 如果發生壓縮 (ZIP) 格式錯誤FilterOutputStream.write(int)
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。