@InterfaceStability.Evolving protected static class GzipCodec.GzipOutputStream extends CompressorStream
buffer, closed, compressorout| 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) |
compresswritepublic GzipCodec.GzipOutputStream(OutputStream out) throws IOException
IOExceptionprotected GzipCodec.GzipOutputStream(CompressorStream out)
out - the Deflater stream to usepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class CompressorStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class CompressionOutputStreamIOExceptionpublic void write(int b)
throws IOException
write in class CompressorStreamIOExceptionpublic void write(byte[] data,
int offset,
int length)
throws IOException
CompressionOutputStreamwrite in class CompressorStreamIOExceptionpublic void finish()
throws IOException
CompressionOutputStreamfinish in class CompressorStreamIOExceptionpublic void resetState()
throws IOException
CompressionOutputStreamresetState in class CompressorStreamIOExceptionCopyright © 2019 Apache Software Foundation. All Rights Reserved.