public class BlockDecompressorStream extends DecompressorStream
DecompressorStream
which works
with 'block-based' based compression algorithms, as opposed to
'stream-based' compression algorithms.buffer, closed, decompressor, eof
in, maxAvailableData
限定符 | 构造器和说明 |
---|---|
protected |
BlockDecompressorStream(InputStream in) |
|
BlockDecompressorStream(InputStream in,
Decompressor decompressor)
Create a
BlockDecompressorStream . |
|
BlockDecompressorStream(InputStream in,
Decompressor decompressor,
int bufferSize)
Create a
BlockDecompressorStream . |
限定符和类型 | 方法和说明 |
---|---|
protected int |
decompress(byte[] b,
int off,
int len) |
protected int |
getCompressedData() |
void |
resetState()
Reset the decompressor to its initial state and discard any buffered data,
as the underlying stream may have been repositioned.
|
available, checkStream, close, mark, markSupported, read, read, reset, skip
getPos, seek, seekToNewSource
read
public BlockDecompressorStream(InputStream in, Decompressor decompressor, int bufferSize) throws IOException
BlockDecompressorStream
.in
- input streamdecompressor
- decompressor to usebufferSize
- size of bufferIOException
public BlockDecompressorStream(InputStream in, Decompressor decompressor) throws IOException
BlockDecompressorStream
.in
- input streamdecompressor
- decompressor to useIOException
protected BlockDecompressorStream(InputStream in) throws IOException
IOException
protected int decompress(byte[] b, int off, int len) throws IOException
decompress
在类中 DecompressorStream
IOException
protected int getCompressedData() throws IOException
getCompressedData
在类中 DecompressorStream
IOException
public void resetState() throws IOException
CompressionInputStream
resetState
在类中 DecompressorStream
IOException
Copyright © 2009 The Apache Software Foundation