Class LZ77Compressor.LiteralBlock

    • Constructor Detail

      • LiteralBlock

        public LiteralBlock​(byte[] data,
                            int offset,
                            int length)
    • Method Detail

      • getData

        public byte[] getData()
        The literal data.

        This returns a life view of the actual data in order to avoid copying, modify the array at your own risk.

        Returns:
        the data
      • getOffset

        public int getOffset()
        Offset into data where the literal block starts.
        Returns:
        the offset
      • getLength

        public int getLength()
        Length of literal block.
        Returns:
        the length
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object