@InterfaceAudience.Public @InterfaceStability.Evolving 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
Modifier | Constructor and Description |
---|---|
protected |
BlockDecompressorStream(InputStream in) |
|
BlockDecompressorStream(InputStream in,
Decompressor decompressor)
Create a
BlockDecompressorStream . |
|
BlockDecompressorStream(InputStream in,
Decompressor decompressor,
int bufferSize)
Create a
BlockDecompressorStream . |
Modifier and Type | Method and Description |
---|---|
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
getIOStatistics, getPos, seek, seekToNewSource
read
public BlockDecompressorStream(InputStream in, Decompressor decompressor, int bufferSize) throws IOException
BlockDecompressorStream
.in
- input streamdecompressor
- decompressor to usebufferSize
- size of bufferIOException
- raised on errors performing I/O.public BlockDecompressorStream(InputStream in, Decompressor decompressor) throws IOException
BlockDecompressorStream
.in
- input streamdecompressor
- decompressor to useIOException
- raised on errors performing I/O.protected BlockDecompressorStream(InputStream in) throws IOException
IOException
protected int decompress(byte[] b, int off, int len) throws IOException
decompress
in class DecompressorStream
IOException
protected int getCompressedData() throws IOException
getCompressedData
in class DecompressorStream
IOException
public void resetState() throws IOException
CompressionInputStream
resetState
in class DecompressorStream
IOException
- raised on errors performing I/O.Copyright © 2023 Apache Software Foundation. All rights reserved.