@InterfaceAudience.Public @InterfaceStability.Evolving public class BZip2Codec extends Object implements Configurable, SplittableCompressionCodec
| コンストラクタと説明 | 
|---|
| BZip2Codec()Creates a new instance of BZip2Codec. | 
| 修飾子とタイプ | メソッドと説明 | 
|---|---|
| Compressor | createCompressor()Create a new  Compressorfor use by thisCompressionCodec. | 
| Decompressor | createDecompressor()Create a new  Decompressorfor use by thisCompressionCodec. | 
| CompressionInputStream | createInputStream(InputStream in)Create a  CompressionInputStreamthat will read from the given
 input stream and return a stream for uncompressed data. | 
| CompressionInputStream | createInputStream(InputStream in,
                 Decompressor decompressor)Create a  CompressionInputStreamthat will read from the givenInputStreamwith the givenDecompressor, and return a 
 stream for uncompressed data. | 
| SplitCompressionInputStream | createInputStream(InputStream seekableIn,
                 Decompressor decompressor,
                 long start,
                 long end,
                 org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE readMode)Creates CompressionInputStream to be used to read off uncompressed data
 in one of the two reading modes. i.e. | 
| 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().bz2 is recognized as the default extension for compressed BZip2 files | 
| void | setConf(Configuration conf)Set the configuration to be used by this object. | 
public BZip2Codec()
public void setConf(Configuration conf)
setConf インタフェース内 Configurableconf - the configuration object.public Configuration getConf()
getConf インタフェース内 Configurablepublic CompressionOutputStream createOutputStream(OutputStream out) throws IOException
CompressionOutputStream that will write to the given
 OutputStream.createOutputStream インタフェース内 CompressionCodecout - the location for the final output streamIOExceptionpublic CompressionOutputStream createOutputStream(OutputStream out, Compressor compressor) throws IOException
CompressionOutputStream that will write to the given
 OutputStream with the given Compressor.createOutputStream インタフェース内 CompressionCodecout - the location for the final output streamcompressor - compressor to useIOExceptionpublic Class<? extends Compressor> getCompressorType()
Compressor needed by this CompressionCodec.getCompressorType インタフェース内 CompressionCodecpublic Compressor createCompressor()
Compressor for use by this CompressionCodec.createCompressor インタフェース内 CompressionCodecpublic CompressionInputStream createInputStream(InputStream in) throws IOException
CompressionInputStream that will read from the given
 input stream and return a stream for uncompressed data.createInputStream インタフェース内 CompressionCodecin - the stream to read compressed bytes fromIOExceptionpublic CompressionInputStream createInputStream(InputStream in, Decompressor decompressor) throws IOException
CompressionInputStream that will read from the given
 InputStream with the given Decompressor, and return a 
 stream for uncompressed data.createInputStream インタフェース内 CompressionCodecin - the stream to read compressed bytes fromdecompressor - decompressor to useIOExceptionpublic SplitCompressionInputStream createInputStream(InputStream seekableIn, Decompressor decompressor, long start, long end, org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE readMode) throws IOException
createInputStream インタフェース内 SplittableCompressionCodecseekableIn - The InputStreamstart - The start offset into the compressed streamend - The end offset into the compressed streamreadMode - Controls whether progress is reported continuously or
                 only at block boundaries.IOExceptionpublic Class<? extends Decompressor> getDecompressorType()
Decompressor needed by this CompressionCodec.getDecompressorType インタフェース内 CompressionCodecpublic Decompressor createDecompressor()
Decompressor for use by this CompressionCodec.createDecompressor インタフェース内 CompressionCodecpublic String getDefaultExtension()
getDefaultExtension インタフェース内 CompressionCodecCopyright © 2016 Apache Software Foundation. All rights reserved.