@InterfaceAudience.Public @InterfaceStability.Evolving public class GzipCodec extends DefaultCodec
Constructor and Description |
---|
GzipCodec() |
getConf, setConf
public GzipCodec()
public CompressionOutputStream createOutputStream(OutputStream out) throws IOException
CompressionCodec
CompressionOutputStream
that will write to the given
OutputStream
.createOutputStream
in interface CompressionCodec
createOutputStream
in class DefaultCodec
out
- the location for the final output streamIOException
public CompressionOutputStream createOutputStream(OutputStream out, Compressor compressor) throws IOException
CompressionCodec
CompressionOutputStream
that will write to the given
OutputStream
with the given Compressor
.createOutputStream
in interface CompressionCodec
createOutputStream
in class DefaultCodec
out
- the location for the final output streamcompressor
- compressor to useIOException
public Compressor createCompressor()
CompressionCodec
Compressor
for use by this CompressionCodec
.createCompressor
in interface CompressionCodec
createCompressor
in class DefaultCodec
public Class<? extends Compressor> getCompressorType()
CompressionCodec
Compressor
needed by this CompressionCodec
.getCompressorType
in interface CompressionCodec
getCompressorType
in class DefaultCodec
public CompressionInputStream createInputStream(InputStream in) throws IOException
CompressionCodec
CompressionInputStream
that will read from the given
input stream.createInputStream
in interface CompressionCodec
createInputStream
in class DefaultCodec
in
- the stream to read compressed bytes fromIOException
public CompressionInputStream createInputStream(InputStream in, Decompressor decompressor) throws IOException
CompressionCodec
CompressionInputStream
that will read from the given
InputStream
with the given Decompressor
.createInputStream
in interface CompressionCodec
createInputStream
in class DefaultCodec
in
- the stream to read compressed bytes fromdecompressor
- decompressor to useIOException
public Decompressor createDecompressor()
CompressionCodec
Decompressor
for use by this CompressionCodec
.createDecompressor
in interface CompressionCodec
createDecompressor
in class DefaultCodec
public Class<? extends Decompressor> getDecompressorType()
CompressionCodec
Decompressor
needed by this CompressionCodec
.getDecompressorType
in interface CompressionCodec
getDecompressorType
in class DefaultCodec
public DirectDecompressor createDirectDecompressor()
DefaultCodec
DirectDecompressor
for use by this DirectDecompressionCodec
.createDirectDecompressor
in interface DirectDecompressionCodec
createDirectDecompressor
in class DefaultCodec
public String getDefaultExtension()
CompressionCodec
getDefaultExtension
in interface CompressionCodec
getDefaultExtension
in class DefaultCodec
Copyright © 2018 Apache Software Foundation. All rights reserved.