|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.io.compress.DefaultCodec
public class DefaultCodec
Constructor Summary | |
---|---|
DefaultCodec()
|
Method Summary | |
---|---|
CompressionInputStream |
createInputStream(InputStream in)
Create a stream decompressor that will read from the given input stream. |
CompressionOutputStream |
createOutputStream(OutputStream out)
Create a stream compressor that will write to the given output stream. |
Configuration |
getConf()
Return the configuration used by this object. |
String |
getDefaultExtension()
Get the default filename extension for this kind of compression. |
void |
setConf(Configuration conf)
Set the configuration to be used by this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultCodec()
Method Detail |
---|
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
createOutputStream
in interface CompressionCodec
out
- the location for the final output stream
IOException
public CompressionInputStream createInputStream(InputStream in) throws IOException
createInputStream
in interface CompressionCodec
in
- the stream to read compressed bytes from
IOException
public String getDefaultExtension()
getDefaultExtension
in interface CompressionCodec
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |