public class BZip2BlockDecompressor extends Object
| Constructor and Description |
|---|
BZip2BlockDecompressor(BZip2BitInputStream bitInputStream,
int blockSize) |
| Modifier and Type | Method and Description |
|---|---|
int |
checkCRC()
Verify and return the block CRC.
|
int |
read()
Decodes a byte from the final Run-Length Encoding stage, pulling a new byte from the
Burrows-Wheeler Transform stage when required
|
int |
read(byte[] destination,
int offset,
int length)
Decodes multiple bytes from the final Run-Length Encoding stage, pulling new bytes from the
Burrows-Wheeler Transform stage when required
|
public BZip2BlockDecompressor(BZip2BitInputStream bitInputStream, int blockSize) throws IOException
bitInputStream - The BZip2BitInputStream to read fromblockSize - The maximum decoded size of the blockIOException - If the block could not be decodedpublic int read()
public int read(byte[] destination,
int offset,
int length)
destination - The array to write tooffset - The starting position within the arraylength - The number of bytes to readpublic int checkCRC()
throws IOException
IOException - if the CRC verification failedCopyright © 2015. All rights reserved.