static final class BlockLZ4CompressorOutputStream.Pair
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
brLength |
private int |
brOffset |
private java.util.Deque<byte[]> |
literals |
private boolean |
written |
Constructor and Description |
---|
Pair() |
Modifier and Type | Method and Description |
---|---|
(package private) byte[] |
addLiteral(LZ77Compressor.LiteralBlock block) |
private int |
backReferenceLength() |
(package private) boolean |
canBeWritten(int lengthOfBlocksAfterThisPair) |
(package private) boolean |
hasBackReference() |
private boolean |
hasBeenWritten() |
(package private) int |
length() |
private static int |
lengths(int litLength,
int brLength) |
private int |
literalLength() |
private void |
prependLiteral(byte[] data) |
private void |
prependTo(BlockLZ4CompressorOutputStream.Pair other) |
(package private) void |
setBackReference(LZ77Compressor.BackReference block) |
private BlockLZ4CompressorOutputStream.Pair |
splitWithNewBackReferenceLengthOf(int newBackReferenceLength) |
private static void |
writeLength(int length,
java.io.OutputStream out) |
(package private) void |
writeTo(java.io.OutputStream out) |
private final java.util.Deque<byte[]> literals
private int brOffset
private int brLength
private boolean written
private void prependLiteral(byte[] data)
byte[] addLiteral(LZ77Compressor.LiteralBlock block)
void setBackReference(LZ77Compressor.BackReference block)
boolean hasBackReference()
boolean canBeWritten(int lengthOfBlocksAfterThisPair)
int length()
private boolean hasBeenWritten()
void writeTo(java.io.OutputStream out) throws java.io.IOException
java.io.IOException
private int literalLength()
private static int lengths(int litLength, int brLength)
private static void writeLength(int length, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
private int backReferenceLength()
private void prependTo(BlockLZ4CompressorOutputStream.Pair other)
private BlockLZ4CompressorOutputStream.Pair splitWithNewBackReferenceLengthOf(int newBackReferenceLength)