Class OptimizedGZIPOutputStream
java.lang.Object
java.io.OutputStream
com.ning.compress.gzip.OptimizedGZIPOutputStream
- All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
Optimized variant of
GZIPOutputStream that
reuses underlying Deflater instance}.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CRC32protected Deflaterprotected DeflaterOutputStreamprotected final byte[]protected final GZIPRecyclerprotected OutputStreamUnderlying output stream that header, compressed content and footer go to -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class OutputStream
nullOutputStream
-
Field Details
-
_deflater
-
_gzipRecycler
-
_eightByteBuffer
protected final byte[] _eightByteBuffer -
_rawOut
Underlying output stream that header, compressed content and footer go to -
_deflaterOut
-
_crc
-
-
Constructor Details
-
OptimizedGZIPOutputStream
- Throws:
IOException
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-