java.util.zip.GZIPOutputStream (JDK 1.1)
This class is a subclass of DeflaterOutputStream that compresses and writes data using the gzip file format. To create a GZIPOutputStream, you must specify the OutputStream that it is to write to, and may optionally specify a size for the internal compression buffer. Once the GZIPOutputStream is created, you can use the write() and close() methods as you would any other output stream.
public classGZIPOutputStreamextends DeflaterOutputStream { //Public ConstructorspublicGZIPOutputStream(OutputStreamout, intsize) throws IOException; publicGZIPOutputStream(OutputStreamout) throws IOException; //Protected Instance Variablesprotected CRC32crc; //Public Instance Methodspublic voidclose() throws IOException; //Overrides DeflaterOutputStreampublic voidfinish() throws IOException; //Overrides DeflaterOutputStreampublic synchronized voidwrite(byte[]buf, intoff, intlen) throws IOException; //Overrides DeflaterOutputStream}
Hierarchy:
Object->OutputStream->FilterOutputStream->DeflaterOutputStream->GZIPOutputStream