Package 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
  Description
  `BackReference(int offset, int length)`

- ## Method Summary

  Modifier and Type
  Method
  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 Details

  - ### BackReference

    public BackReference(int offset, int length)

- ## Method Details

  - ### 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`