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 getOffset()
public int getLength()
public LZ77Compressor.Block.BlockType getType()
getType
in class LZ77Compressor.Block
public java.lang.String toString()
toString
in class java.lang.Object
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"