| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.io.compress.DefaultCodec
public class DefaultCodec
| Constructor Summary | |
|---|---|
| DefaultCodec() | |
| Method Summary | |
|---|---|
|  Compressor | createCompressor()Create a new Compressorfor use by thisCompressionCodec. | 
|  Decompressor | createDecompressor()Create a new Decompressorfor use by thisCompressionCodec. | 
|  CompressionInputStream | createInputStream(InputStream in)Create a stream decompressor that will read from the given input stream. | 
|  CompressionInputStream | createInputStream(InputStream in,
                  Decompressor decompressor)Create a CompressionInputStreamthat will read from the givenInputStreamwith the givenDecompressor. | 
|  CompressionOutputStream | createOutputStream(OutputStream out)Create a CompressionOutputStreamthat will write to the givenOutputStream. | 
|  CompressionOutputStream | createOutputStream(OutputStream out,
                   Compressor compressor)Create a CompressionOutputStreamthat will write to the givenOutputStreamwith the givenCompressor. | 
|  Class<? extends Compressor> | getCompressorType()Get the type of Compressorneeded by thisCompressionCodec. | 
|  Configuration | getConf()Return the configuration used by this object. | 
|  Class<? extends Decompressor> | getDecompressorType()Get the type of Decompressorneeded by thisCompressionCodec. | 
|  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 Configurablepublic Configuration getConf()
Configurable
getConf in interface Configurable
public CompressionOutputStream createOutputStream(OutputStream out)
                                           throws IOException
CompressionCodecCompressionOutputStream that will write to the given 
 OutputStream.
createOutputStream in interface CompressionCodecout - the location for the final output stream
IOException
public CompressionOutputStream createOutputStream(OutputStream out,
                                                  Compressor compressor)
                                           throws IOException
CompressionCodecCompressionOutputStream that will write to the given 
 OutputStream with the given Compressor.
createOutputStream in interface CompressionCodecout - the location for the final output streamcompressor - compressor to use
IOExceptionpublic Class<? extends Compressor> getCompressorType()
CompressionCodecCompressor needed by this CompressionCodec.
getCompressorType in interface CompressionCodecpublic Compressor createCompressor()
CompressionCodecCompressor for use by this CompressionCodec.
createCompressor in interface CompressionCodec
public CompressionInputStream createInputStream(InputStream in)
                                         throws IOException
CompressionCodec
createInputStream in interface CompressionCodecin - the stream to read compressed bytes from
IOException
public CompressionInputStream createInputStream(InputStream in,
                                                Decompressor decompressor)
                                         throws IOException
CompressionCodecCompressionInputStream that will read from the given 
 InputStream with the given Decompressor.
createInputStream in interface CompressionCodecin - the stream to read compressed bytes fromdecompressor - decompressor to use
IOExceptionpublic Class<? extends Decompressor> getDecompressorType()
CompressionCodecDecompressor needed by this CompressionCodec.
getDecompressorType in interface CompressionCodecpublic Decompressor createDecompressor()
CompressionCodecDecompressor for use by this CompressionCodec.
createDecompressor in interface CompressionCodecpublic String getDefaultExtension()
CompressionCodec
getDefaultExtension in interface CompressionCodec| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||