|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.googlecode.javaewah32.BufferedRunningLengthWord32
public final class BufferedRunningLengthWord32
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. |
int |
RunningLength
The Running length. |
Constructor Summary | |
---|---|
BufferedRunningLengthWord32(int a)
Instantiates a new buffered running length word. |
|
BufferedRunningLengthWord32(RunningLengthWord32 rlw)
Instantiates a new buffered running length word. |
Method Summary | |
---|---|
BufferedRunningLengthWord32 |
clone()
|
void |
discardFirstWords(int x)
Discard first words. |
int |
getNumberOfLiteralWords()
Gets the number of literal words. |
boolean |
getRunningBit()
Gets the running bit. |
int |
getRunningLength()
Gets the running length. |
void |
reset(int a)
Reset the values using the provided word. |
void |
reset(RunningLengthWord32 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(int number)
Sets the running length. |
int |
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 int RunningLength
Constructor Detail |
---|
public BufferedRunningLengthWord32(int a)
a
- the wordpublic BufferedRunningLengthWord32(RunningLengthWord32 rlw)
rlw
- the rlwMethod Detail |
---|
public void discardFirstWords(int x)
x
- the number of words to be discardedpublic int getNumberOfLiteralWords()
public boolean getRunningBit()
public int getRunningLength()
public void reset(int a)
a
- the wordpublic void reset(RunningLengthWord32 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(int number)
number
- the new running lengthpublic int size()
public String toString()
toString
in class Object
public BufferedRunningLengthWord32 clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |