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
-
-
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
-
prependLiteral
private void prependLiteral(byte[] data)
-
addLiteral
byte[] addLiteral(LZ77Compressor.LiteralBlock block)
-
setBackReference
void setBackReference(LZ77Compressor.BackReference block)
-
hasBackReference
boolean hasBackReference()
-
canBeWritten
boolean canBeWritten(int lengthOfBlocksAfterThisPair)
-
length
int length()
-
hasBeenWritten
private boolean hasBeenWritten()
-
writeTo
void writeTo(java.io.OutputStream out) throws java.io.IOException
- Throws:
java.io.IOException
-
literalLength
private int literalLength()
-
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
-
backReferenceLength
private int backReferenceLength()
-
prependTo
private void prependTo(BlockLZ4CompressorOutputStream.Pair other)
-
splitWithNewBackReferenceLengthOf
private BlockLZ4CompressorOutputStream.Pair splitWithNewBackReferenceLengthOf(int newBackReferenceLength)
-
-