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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLength()Provides the length of the back-reference.intgetOffset()Provides the offset of the back-reference.LZ77Compressor.Block.BlockTypegetType()java.lang.StringtoString()
-
-
-
Method Detail
-
getOffset
public int getOffset()
Provides the offset of the back-reference.- Returns:
- the offset
-
getLength
public int getLength()
Provides the length of the back-reference.- Returns:
- the length
-
getType
public LZ77Compressor.Block.BlockType getType()
- Specified by:
getTypein classLZ77Compressor.Block
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-