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) |
write
private static final int GZIP_HEADER_LENGTH
private static final byte[] GZIP_HEADER
GZIPOutputStream
's source for
details.public ReusableGzipOutputStream(OutputStream out) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class org.apache.hadoop.io.compress.CompressorStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class org.apache.hadoop.io.compress.CompressionOutputStream
IOException
public void write(int b) throws IOException
write
in class org.apache.hadoop.io.compress.CompressorStream
IOException
public void write(byte[] data, int offset, int length) throws IOException
write
in class org.apache.hadoop.io.compress.CompressorStream
IOException
public void finish() throws IOException
finish
in class org.apache.hadoop.io.compress.CompressorStream
IOException
public void resetState() throws IOException
resetState
in class org.apache.hadoop.io.compress.CompressorStream
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.