public class BlockGunzipper
extends java.lang.Object
Constructor and Description |
---|
BlockGunzipper() |
Modifier and Type | Method and Description |
---|---|
void |
setCheckCrcs(boolean check)
Allows the caller to decide whether or not to check CRCs on when uncompressing blocks.
|
int |
unzipBlock(byte[] uncompressedBlock,
byte[] compressedBlock,
int compressedLength)
Decompress GZIP-compressed data
|
int |
unzipBlock(byte[] uncompressedBlock,
int uncompressedBlockOffset,
byte[] compressedBlock,
int compressedBlockOffset,
int compressedLength)
Decompress GZIP-compressed data
|
public void setCheckCrcs(boolean check)
public int unzipBlock(byte[] uncompressedBlock, byte[] compressedBlock, int compressedLength)
uncompressedBlock
- must be big enough to hold decompressed output.compressedBlock
- compressed data starting at offset 0compressedLength
- size of compressed data, possibly less than the size of the buffer.public int unzipBlock(byte[] uncompressedBlock, int uncompressedBlockOffset, byte[] compressedBlock, int compressedBlockOffset, int compressedLength)
uncompressedBlock
- must be big enough to hold decompressed output.uncompressedBlockOffset
- the offset into uncompressedBlock.compressedBlock
- compressed data starting at offset 0.compressedBlock
- the offset into the compressed data.compressedLength
- size of compressed data, possibly less than the size of the buffer.