Modifier and Type | Field and Description |
---|---|
protected int |
literalWordOffset
how many literal words have we read so far?
|
protected int |
numberOfLiteralWords
The Number of literal words.
|
protected boolean |
runningBit
The Running bit.
|
protected long |
runningLength
The Running length.
|
Constructor and Description |
---|
BufferedRunningLengthWord(long a)
Instantiates a new buffered running length word.
|
BufferedRunningLengthWord(RunningLengthWord rlw)
Instantiates a new buffered running length word.
|
Modifier and Type | Method and Description |
---|---|
BufferedRunningLengthWord |
clone() |
void |
discardFirstWords(long x)
Discard first words.
|
int |
getNumberOfLiteralWords()
Gets the number of literal words.
|
boolean |
getRunningBit()
Gets the running bit.
|
long |
getRunningLength()
Gets the running length.
|
void |
reset(long a)
Reset the values using the provided word.
|
void |
reset(RunningLengthWord rlw)
Reset the values of this running length word so that it has the same
values as the other running length word.
|
void |
setNumberOfLiteralWords(int number)
Sets the number of literal words.
|
void |
setRunningBit(boolean b)
Sets the running bit.
|
void |
setRunningLength(long number)
Sets the running length.
|
long |
size()
Size in uncompressed words.
|
String |
toString() |
protected int literalWordOffset
protected int numberOfLiteralWords
protected boolean runningBit
protected long runningLength
public BufferedRunningLengthWord(long a)
a
- the wordpublic BufferedRunningLengthWord(RunningLengthWord rlw)
rlw
- the rlwpublic void discardFirstWords(long x)
x
- the xpublic int getNumberOfLiteralWords()
public boolean getRunningBit()
public long getRunningLength()
public void reset(long a)
a
- the wordpublic void reset(RunningLengthWord rlw)
rlw
- the other running length wordpublic void setNumberOfLiteralWords(int number)
number
- the new number of literal wordspublic void setRunningBit(boolean b)
b
- the new running bitpublic void setRunningLength(long number)
number
- the new running lengthpublic long size()
public BufferedRunningLengthWord clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright © 2016. All Rights Reserved.