Class ReusableStreamGzipCodec.ReusableGzipOutputStream
java.lang.Object
java.io.OutputStream
org.apache.hadoop.io.compress.CompressionOutputStream
org.apache.hadoop.io.compress.CompressorStream
org.apache.hadoop.hbase.io.compress.ReusableStreamGzipCodec.ReusableGzipOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
,org.apache.hadoop.fs.statistics.IOStatisticsSource
- Enclosing class:
- ReusableStreamGzipCodec
protected static class ReusableStreamGzipCodec.ReusableGzipOutputStream
extends org.apache.hadoop.io.compress.CompressorStream
A bridge that wraps around a DeflaterOutputStream to make it a CompressionOutputStream.
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final byte[]
Fixed ten-byte gzip header.private static final int
Fields inherited from class org.apache.hadoop.io.compress.CompressorStream
buffer, closed, compressor
Fields inherited from class org.apache.hadoop.io.compress.CompressionOutputStream
out
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.hadoop.io.compress.CompressorStream
compress
Methods inherited from class org.apache.hadoop.io.compress.CompressionOutputStream
getIOStatistics
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
Field Details
-
GZIP_HEADER_LENGTH
- See Also:
-
GZIP_HEADER
Fixed ten-byte gzip header. SeeGZIPOutputStream
's source for details.
-
-
Constructor Details
-
ReusableGzipOutputStream
- Throws:
IOException
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classorg.apache.hadoop.io.compress.CompressorStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classorg.apache.hadoop.io.compress.CompressionOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classorg.apache.hadoop.io.compress.CompressorStream
- Throws:
IOException
-
write
- Overrides:
write
in classorg.apache.hadoop.io.compress.CompressorStream
- Throws:
IOException
-
finish
- Overrides:
finish
in classorg.apache.hadoop.io.compress.CompressorStream
- Throws:
IOException
-
resetState
- Overrides:
resetState
in classorg.apache.hadoop.io.compress.CompressorStream
- Throws:
IOException
-