Class BlockLZ4CompressorOutputStream.Pair
- java.lang.Object
-
- org.apache.commons.compress.compressors.lz4.BlockLZ4CompressorOutputStream.Pair
-
- Enclosing class:
- BlockLZ4CompressorOutputStream
static final class BlockLZ4CompressorOutputStream.Pair extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private int
brLength
private int
brOffset
private int
literalLength
private java.util.Deque<byte[]>
literals
private boolean
written
-
Constructor Summary
Constructors Constructor Description Pair()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
lengths
private static int lengths(int litLength, int brLength)
-
writeLength
private static void writeLength(int length, java.io.OutputStream out) throws java.io.IOException
- Throws:
java.io.IOException
-
addLiteral
byte[] addLiteral(LZ77Compressor.LiteralBlock block)
-
backReferenceLength
private int backReferenceLength()
-
canBeWritten
boolean canBeWritten(int lengthOfBlocksAfterThisPair)
-
hasBackReference
boolean hasBackReference()
-
hasBeenWritten
private boolean hasBeenWritten()
-
length
int length()
-
literalLength
private int literalLength()
-
prependLiteral
private void prependLiteral(byte[] data)
-
prependTo
private void prependTo(BlockLZ4CompressorOutputStream.Pair other)
-
setBackReference
void setBackReference(LZ77Compressor.BackReference block)
-
splitWithNewBackReferenceLengthOf
private BlockLZ4CompressorOutputStream.Pair splitWithNewBackReferenceLengthOf(int newBackReferenceLength)
-
writeTo
void writeTo(java.io.OutputStream out) throws java.io.IOException
- Throws:
java.io.IOException
-
-