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.
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.
|
String |
toString() |
public LiteralBlock(byte[] data, int offset, int length)
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()
Copyright © 2017 The Apache Software Foundation. All rights reserved.