public class BZip2Codec extends Object implements SplittableCompressionCodec
SplittableCompressionCodec.READ_MODE
构造器和说明 |
---|
BZip2Codec()
Creates a new instance of BZip2Codec
|
限定符和类型 | 方法和说明 |
---|---|
Compressor |
createCompressor()
This functionality is currently not supported.
|
Decompressor |
createDecompressor()
This functionality is currently not supported.
|
CompressionInputStream |
createInputStream(InputStream in)
Creates CompressionInputStream to be used to read off uncompressed data.
|
CompressionInputStream |
createInputStream(InputStream in,
Decompressor decompressor)
This functionality is currently not supported.
|
SplitCompressionInputStream |
createInputStream(InputStream seekableIn,
Decompressor decompressor,
long start,
long end,
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)
Creates CompressionOutputStream for BZip2
|
CompressionOutputStream |
createOutputStream(OutputStream out,
Compressor compressor)
Creates a compressor using given OutputStream.
|
Class<? extends Compressor> |
getCompressorType()
This functionality is currently not supported.
|
Class<? extends Decompressor> |
getDecompressorType()
This functionality is currently not supported.
|
String |
getDefaultExtension()
.bz2 is recognized as the default extension for compressed BZip2 files
|
public CompressionOutputStream createOutputStream(OutputStream out) throws IOException
createOutputStream
在接口中 CompressionCodec
out
- The output StreamIOException
- Throws IO exceptionpublic CompressionOutputStream createOutputStream(OutputStream out, Compressor compressor) throws IOException
createOutputStream
在接口中 CompressionCodec
out
- the location for the final output streamcompressor
- compressor to useIOException
public Class<? extends Compressor> getCompressorType()
getCompressorType
在接口中 CompressionCodec
public Compressor createCompressor()
createCompressor
在接口中 CompressionCodec
public CompressionInputStream createInputStream(InputStream in) throws IOException
createInputStream
在接口中 CompressionCodec
in
- The InputStreamIOException
- Throws IOExceptionpublic CompressionInputStream createInputStream(InputStream in, Decompressor decompressor) throws IOException
createInputStream
在接口中 CompressionCodec
in
- the stream to read compressed bytes fromdecompressor
- decompressor to useIOException
public SplitCompressionInputStream createInputStream(InputStream seekableIn, Decompressor decompressor, long start, long end, SplittableCompressionCodec.READ_MODE readMode) throws IOException
createInputStream
在接口中 SplittableCompressionCodec
seekableIn
- 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.IOException
public Class<? extends Decompressor> getDecompressorType()
getDecompressorType
在接口中 CompressionCodec
public Decompressor createDecompressor()
createDecompressor
在接口中 CompressionCodec
public String getDefaultExtension()
getDefaultExtension
在接口中 CompressionCodec
Copyright © 2009 The Apache Software Foundation