public static final class LZ77Compressor.LiteralBlock extends LZ77Compressor.Block
For performance reasons this encapsulates the real data, not a copy of it. Don't modify the data and process it inside of LZ77Compressor.Callback.accept(org.apache.commons.compress.compressors.lz77support.LZ77Compressor.Block)
immediately as it will get overwritten sooner or later.
LZ77Compressor.Block.BlockType| Constructor and Description |
|---|
LiteralBlock(byte[] data,
int offset,
int length) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getData()
The literal data.
|
int |
getLength()
Length of literal block.
|
int |
getOffset()
Offset into data where the literal block starts.
|
LZ77Compressor.Block.BlockType |
getType() |
java.lang.String |
toString() |
public byte[] getData()
This returns a life view of the actual data in order to avoid copying, modify the array at your own risk.
public int getLength()
public int getOffset()
public LZ77Compressor.Block.BlockType getType()
getType in class LZ77Compressor.Blockpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2010 - 2024 Adobe. All Rights Reserved