|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
java.util.zip.DeflaterOutputStream
java.util.zip.GZIPOutputStream
public class GZIPOutputStream
此類別為使用 GZIP 檔案格式寫入壓縮資料實作串流過濾器。
| 欄位摘要 | |
|---|---|
protected CRC32 |
crc
未壓縮資料的 CRC-32 。 |
| 從類別 java.util.zip.DeflaterOutputStream 繼承的欄位 |
|---|
buf, def |
| 從類別 java.io.FilterOutputStream 繼承的欄位 |
|---|
out |
| 建構子摘要 | |
|---|---|
GZIPOutputStream(OutputStream out)
使用預設緩衝區大小創建新的輸出串流。 |
|
GZIPOutputStream(OutputStream out,
int size)
使用指定緩衝區大小創建新的輸出串流。 |
|
| 方法摘要 | |
|---|---|
void |
finish()
完成將壓縮資料寫入輸出串流的操作,無需關閉底層串流。 |
void |
write(byte[] buf,
int off,
int len)
將位元組陣列寫入壓縮輸出串流。 |
| 從類別 java.util.zip.DeflaterOutputStream 繼承的方法 |
|---|
close, deflate, write |
| 從類別 java.io.FilterOutputStream 繼承的方法 |
|---|
flush, write |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 欄位詳細資訊 |
|---|
protected CRC32 crc
| 建構子詳細資訊 |
|---|
public GZIPOutputStream(OutputStream out,
int size)
throws IOException
out - 輸出串流size - 輸出緩衝區大小
IOException - 如果發生 I/O 錯誤。
IllegalArgumentException - 如果大小為 <= 0
public GZIPOutputStream(OutputStream out)
throws IOException
out - 輸出串流
IOException - 如果發生 I/O 錯誤。| 方法詳細資訊 |
|---|
public void write(byte[] buf,
int off,
int len)
throws IOException
DeflaterOutputStream 中的 writebuf - 要寫入的資料off - 資料的初始偏移量len - 資料的長度
IOException - 如果發生 I/O 錯誤FilterOutputStream.write(int)
public void finish()
throws IOException
DeflaterOutputStream 中的 finishIOException - 如果發生 I/O 錯誤
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。