Class LZ77Compressor.AbstractReference
java.lang.Object
org.apache.commons.compress.compressors.lz77support.LZ77Compressor.Block
org.apache.commons.compress.compressors.lz77support.LZ77Compressor.AbstractReference
- Direct Known Subclasses:
LZ77Compressor.BackReference
,LZ77Compressor.LiteralBlock
- Enclosing class:
LZ77Compressor
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
ConstructorsConstructorDescriptionAbstractReference
(LZ77Compressor.Block.BlockType blockType, int offset, int length) Constructs a new instance. -
Method Summary
Methods inherited from class org.apache.commons.compress.compressors.lz77support.LZ77Compressor.Block
getType
-
Constructor Details
-
AbstractReference
Constructs a new instance.- Parameters:
blockType
- The block type.offset
- the offset of the reference.length
- the offset of the reference.
-
-
Method Details
-
getLength
Gets the offset of the reference.- Returns:
- the length
-
getOffset
Gets the offset of the reference.- Returns:
- the offset
-
toString
- Overrides:
toString
in classLZ77Compressor.Block
-