@InterfaceAudience.Public @InterfaceStability.Evolving public class DefaultCodec extends Object implements Configurable, CompressionCodec
Constructor and Description |
---|
DefaultCodec() |
public DefaultCodec()
public void setConf(Configuration conf)
Configurable
setConf
in interface Configurable
public Configuration getConf()
Configurable
getConf
in interface Configurable
public CompressionOutputStream createOutputStream(OutputStream out) throws IOException
CompressionCodec
CompressionOutputStream
that will write to the given
OutputStream
.createOutputStream
in interface CompressionCodec
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
out
- the location for the final output streamcompressor
- compressor to useIOException
public Class<? extends Compressor> getCompressorType()
CompressionCodec
Compressor
needed by this CompressionCodec
.getCompressorType
in interface CompressionCodec
public Compressor createCompressor()
CompressionCodec
Compressor
for use by this CompressionCodec
.createCompressor
in interface CompressionCodec
public CompressionInputStream createInputStream(InputStream in) throws IOException
CompressionCodec
CompressionInputStream
that will read from the given
input stream.createInputStream
in interface CompressionCodec
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
in
- the stream to read compressed bytes fromdecompressor
- decompressor to useIOException
public Class<? extends Decompressor> getDecompressorType()
CompressionCodec
Decompressor
needed by this CompressionCodec
.getDecompressorType
in interface CompressionCodec
public Decompressor createDecompressor()
CompressionCodec
Decompressor
for use by this CompressionCodec
.createDecompressor
in interface CompressionCodec
public String getDefaultExtension()
CompressionCodec
getDefaultExtension
in interface CompressionCodec
Copyright © 2014 Apache Software Foundation. All Rights Reserved.