org.apache.commons.compress.compressors.gzip
public class GzipCompressorOutputStream extends CompressorOutputStream
GZIPOutputStream
class by allowing
the configuration of the compression level and the header metadata (filename,
comment, modification time, operating system and extra flags).Constructor and Description |
---|
GzipCompressorOutputStream(OutputStream out)
Creates a gzip compressed output stream with the default parameters.
|
GzipCompressorOutputStream(OutputStream out,
GzipParameters parameters)
Creates a gzip compressed output stream with the specified parameters.
|
public GzipCompressorOutputStream(OutputStream out) throws IOException
IOException
public GzipCompressorOutputStream(OutputStream out, GzipParameters parameters) throws IOException
IOException
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] buffer) throws IOException
write
in class OutputStream
IOException
public void write(byte[] buffer, int offset, int length) throws IOException
write
in class OutputStream
IOException
public void finish() throws IOException
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in class OutputStream
IOException
Copyright © 2014 The Apache Software Foundation. All rights reserved.