public class OptimizedGZIPOutputStream extends OutputStream
GZIPOutputStream that
reuses underlying Deflater instance}.| Modifier and Type | Field and Description |
|---|---|
protected CRC32 |
_crc |
protected Deflater |
_deflater |
protected DeflaterOutputStream |
_deflaterOut |
protected byte[] |
_eightByteBuffer |
protected GZIPRecycler |
_gzipRecycler |
protected OutputStream |
_rawOut
Underlying output stream that header, compressed content and
footer go to
|
| Constructor and Description |
|---|
OptimizedGZIPOutputStream(OutputStream out) |
protected Deflater _deflater
protected final GZIPRecycler _gzipRecycler
protected final byte[] _eightByteBuffer
protected OutputStream _rawOut
protected DeflaterOutputStream _deflaterOut
protected CRC32 _crc
public OptimizedGZIPOutputStream(OutputStream out) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic final void write(byte[] buf)
throws IOException
write in class OutputStreamIOExceptionpublic final void write(int c)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] buf,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionCopyright © 2014. All Rights Reserved.