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) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
void |
write(byte[] buf) |
void |
write(byte[] buf,
int off,
int len) |
void |
write(int c) |
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
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public final void write(byte[] buf) throws IOException
write
in class OutputStream
IOException
public final void write(int c) throws IOException
write
in class OutputStream
IOException
public void write(byte[] buf, int off, int len) throws IOException
write
in class OutputStream
IOException
Copyright © 2014. All rights reserved.