protected static class ReusableStreamGzipCodec.ReusableGzipOutputStream extends org.apache.hadoop.io.compress.CompressorStream
| Modifier and Type | Class and Description |
|---|---|
private static class |
ReusableStreamGzipCodec.ReusableGzipOutputStream.ResetableGZIPOutputStream |
| Modifier and Type | Field and Description |
|---|---|
private static byte[] |
GZIP_HEADER
Fixed ten-byte gzip header.
|
private static int |
GZIP_HEADER_LENGTH |
| Constructor and Description |
|---|
ReusableGzipOutputStream(OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
finish() |
void |
flush() |
void |
resetState() |
void |
write(byte[] data,
int offset,
int length) |
void |
write(int b) |
writeprivate static final int GZIP_HEADER_LENGTH
private static final byte[] GZIP_HEADER
GZIPOutputStream's source for
details.public ReusableGzipOutputStream(OutputStream out) throws IOException
IOExceptionpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.hadoop.io.compress.CompressorStreamIOExceptionpublic void flush() throws IOException
flush in interface Flushableflush in class org.apache.hadoop.io.compress.CompressionOutputStreamIOExceptionpublic void write(int b) throws IOException
write in class org.apache.hadoop.io.compress.CompressorStreamIOExceptionpublic void write(byte[] data, int offset, int length) throws IOException
write in class org.apache.hadoop.io.compress.CompressorStreamIOExceptionpublic void finish() throws IOException
finish in class org.apache.hadoop.io.compress.CompressorStreamIOExceptionpublic void resetState() throws IOException
resetState in class org.apache.hadoop.io.compress.CompressorStreamIOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.