@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, eofin, 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, skipgetIOStatistics, getPos, seek, seekToNewSourcereadpublic 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
IOExceptionprotected int decompress(byte[] b,
                         int off,
                         int len)
                  throws IOException
decompress in class DecompressorStreamIOExceptionprotected int getCompressedData()
                         throws IOException
getCompressedData in class DecompressorStreamIOExceptionpublic void resetState()
                throws IOException
CompressionInputStreamresetState in class DecompressorStreamIOException - raised on errors performing I/O.Copyright © 2023 Apache Software Foundation. All rights reserved.