@InterfaceStability.Evolving protected static class GzipCodec.GzipOutputStream extends CompressorStream
buffer, closed, compressor
out
Modifier | Constructor and Description |
---|---|
protected |
GzipCodec.GzipOutputStream(CompressorStream out)
Allow children types to put a different type in here.
|
|
GzipCodec.GzipOutputStream(OutputStream out) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
finish()
Finishes writing compressed data to the output stream
without closing the underlying stream.
|
void |
flush() |
void |
resetState()
Reset the compression to the initial state.
|
void |
write(byte[] data,
int offset,
int length)
Write compressed bytes to the stream.
|
void |
write(int b) |
compress
write
public GzipCodec.GzipOutputStream(OutputStream out) throws IOException
IOException
protected GzipCodec.GzipOutputStream(CompressorStream out)
out
- the Deflater stream to usepublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class CompressorStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class CompressionOutputStream
IOException
public void write(int b) throws IOException
write
in class CompressorStream
IOException
public void write(byte[] data, int offset, int length) throws IOException
CompressionOutputStream
write
in class CompressorStream
IOException
public void finish() throws IOException
CompressionOutputStream
finish
in class CompressorStream
IOException
public void resetState() throws IOException
CompressionOutputStream
resetState
in class CompressorStream
IOException
Copyright © 2019 Apache Software Foundation. All Rights Reserved.