|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavaewah.BufferedRunningLengthWord
public final class BufferedRunningLengthWord
Mostly for internal use. Similar to RunningLengthWord, but can be modified without access to the array, and has faster access.
| Field Summary | |
|---|---|
int |
dirtywordoffset
how many dirty words have we read so far? |
int |
NumberOfLiteralWords
The Number of literal words. |
boolean |
RunningBit
The Running bit. |
long |
RunningLength
The Running length. |
| Constructor Summary | |
|---|---|
BufferedRunningLengthWord(long a)
Instantiates a new buffered running length word. |
|
BufferedRunningLengthWord(RunningLengthWord rlw)
Instantiates a new buffered running length word. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int NumberOfLiteralWords
public boolean RunningBit
public long RunningLength
public int dirtywordoffset
| Constructor Detail |
|---|
public BufferedRunningLengthWord(RunningLengthWord rlw)
rlw - the rlwpublic BufferedRunningLengthWord(long a)
a - the word| Method Detail |
|---|
public void reset(RunningLengthWord rlw)
rlw - the other running length wordpublic void reset(long a)
a - the wordpublic int getNumberOfLiteralWords()
public void setNumberOfLiteralWords(int number)
number - the new number of literal wordspublic void setRunningBit(boolean b)
b - the new running bitpublic boolean getRunningBit()
public long getRunningLength()
public void setRunningLength(long number)
number - the new running lengthpublic long size()
public String toString()
toString in class Objectpublic void discardFirstWords(long x)
x - the x
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||