Class BlockLZ4CompressorOutputStream.Pair

java.lang.Object
org.apache.commons.compress.compressors.lz4.BlockLZ4CompressorOutputStream.Pair
Enclosing class:
BlockLZ4CompressorOutputStream

static final class BlockLZ4CompressorOutputStream.Pair extends Object
  • Field Details

    • literals

      private final Deque<byte[]> literals
    • brOffset

      private int brOffset
    • brLength

      private int brLength
    • written

      private boolean written
  • Constructor Details

    • Pair

      Pair()
  • Method Details

    • 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(OutputStream out) throws IOException
      Throws:
      IOException
    • literalLength

      private int literalLength()
    • lengths

      private static int lengths(int litLength, int brLength)
    • writeLength

      private static void writeLength(int length, OutputStream out) throws IOException
      Throws:
      IOException
    • backReferenceLength

      private int backReferenceLength()
    • prependTo

      private void prependTo(BlockLZ4CompressorOutputStream.Pair other)
    • splitWithNewBackReferenceLengthOf

      private BlockLZ4CompressorOutputStream.Pair splitWithNewBackReferenceLengthOf(int newBackReferenceLength)