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 intbackReferenceLength()(package private) booleancanBeWritten(int lengthOfBlocksAfterThisPair)(package private) booleanhasBackReference()private booleanhasBeenWritten()(package private) intlength()private static intlengths(int litLength, int brLength)private intliteralLength()private voidprependLiteral(byte[] data)private voidprependTo(BlockLZ4CompressorOutputStream.Pair other)(package private) voidsetBackReference(LZ77Compressor.BackReference block)private BlockLZ4CompressorOutputStream.PairsplitWithNewBackReferenceLengthOf(int newBackReferenceLength)private static voidwriteLength(int length, java.io.OutputStream out)(package private) voidwriteTo(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)
-
-