org.apache.commons.compress.compressors.lz77support

## Class LZ77Compressor.BackReference

- java.lang.Object
- - org.apache.commons.compress.compressors.lz77support.LZ77Compressor.Block
  - - org.apache.commons.compress.compressors.lz77support.LZ77Compressor.BackReference

- Enclosing class:
    LZ77Compressor

      public static final class LZ77Compressor.BackReference
      extends LZ77Compressor.Block

  Represents a back-reference.

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class org.apache.commons.compress.compressors.lz77support.LZ77Compressor.Block

      `LZ77Compressor.Block.BlockType`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `BackReference(int offset, int length)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getLength()` Provides the length of the back-reference.
    `int` | `getOffset()` Provides the offset of the back-reference.
    `LZ77Compressor.Block.BlockType` | `getType()`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### BackReference

          public BackReference(int offset,
                               int length)

  - ### Method Detail

    - #### getLength

          public int getLength()

      Provides the length of the back-reference.
      Returns:
        the length

    - #### getOffset

          public int getOffset()

      Provides the offset of the back-reference.
      Returns:
        the offset

    - #### getType

          public LZ77Compressor.Block.BlockType getType()

      Specified by:
        `getType` in class `LZ77Compressor.Block`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.