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
public abstract static class LZ77Compressor.AbstractReference 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 AbstractReference(LZ77Compressor.Block.BlockType blockType, int offset, int length)Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLength()Gets the offset of the reference.intgetOffset()Gets the offset of the reference.java.lang.StringtoString()-
Methods inherited from class org.apache.commons.compress.compressors.lz77support.LZ77Compressor.Block
getType
-
-
-
-
Constructor Detail
-
AbstractReference
public AbstractReference(LZ77Compressor.Block.BlockType blockType, int offset, int length)
Constructs a new instance.- Parameters:
blockType- The block type.offset- the offset of the reference.length- the offset of the reference.
-
-
Method Detail
-
getLength
public int getLength()
Gets the offset of the reference.- Returns:
- the length
-
getOffset
public int getOffset()
Gets the offset of the reference.- Returns:
- the offset
-
toString
public java.lang.String toString()
- Overrides:
toStringin classLZ77Compressor.Block
-
-