Package com.googlecode.javaewah32
Class RunningLengthWord32
- java.lang.Object
-
- com.googlecode.javaewah32.RunningLengthWord32
-
-
Field Summary
Fields Modifier and Type Field Description static intLARGEST_LITERAL_COUNTlargest number of literal words in a run.static intLARGEST_RUNNING_LENGTH_COUNTlargest number of clean words in a runstatic intRUNNING_LENGTH_BITSnumber of bits dedicated to marking of the running length of clean words
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RunningLengthWord32clone()intgetNumberOfLiteralWords()Gets the number of literal words.booleangetRunningBit()Gets the running bit.intgetRunningLength()Gets the running length.voidsetNumberOfLiteralWords(int number)Sets the number of literal words.voidsetRunningBit(boolean b)Sets the running bit.voidsetRunningLength(int number)Sets the running length.intsize()Return the size in uncompressed words represented by this running length word.StringtoString()
-
-
-
Field Detail
-
RUNNING_LENGTH_BITS
public static final int RUNNING_LENGTH_BITS
number of bits dedicated to marking of the running length of clean words- See Also:
- Constant Field Values
-
LARGEST_LITERAL_COUNT
public static final int LARGEST_LITERAL_COUNT
largest number of literal words in a run.- See Also:
- Constant Field Values
-
LARGEST_RUNNING_LENGTH_COUNT
public static final int LARGEST_RUNNING_LENGTH_COUNT
largest number of clean words in a run- See Also:
- Constant Field Values
-
-
Method Detail
-
getNumberOfLiteralWords
public int getNumberOfLiteralWords()
Gets the number of literal words.- Returns:
- the number of literal words
-
getRunningBit
public boolean getRunningBit()
Gets the running bit.- Returns:
- the running bit
-
getRunningLength
public int getRunningLength()
Gets the running length.- Returns:
- the running length
-
setNumberOfLiteralWords
public void setNumberOfLiteralWords(int number)
Sets the number of literal words.- Parameters:
number- the new number of literal words
-
setRunningBit
public void setRunningBit(boolean b)
Sets the running bit.- Parameters:
b- the new running bit
-
setRunningLength
public void setRunningLength(int number)
Sets the running length.- Parameters:
number- the new running length
-
size
public int size()
Return the size in uncompressed words represented by this running length word.- Returns:
- the int
-
clone
public RunningLengthWord32 clone() throws CloneNotSupportedException
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
-