|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.javaewah.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 |
literalwordoffset
how many literal 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 | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int literalwordoffset
public int NumberOfLiteralWords
public boolean RunningBit
public long RunningLength
| Constructor Detail |
|---|
public BufferedRunningLengthWord(long a)
a - the wordpublic BufferedRunningLengthWord(RunningLengthWord rlw)
rlw - the rlw| Method Detail |
|---|
public 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 String toString()
toString in class Object
public BufferedRunningLengthWord clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||