Modifier and Type | Field and Description |
---|---|
static int |
LARGEST_LITERAL_COUNT
largest number of literal words in a run.
|
static int |
LARGEST_RUNNING_LENGTH_COUNT
largest number of clean words in a run
|
static int |
RUNNING_LENGTH_BITS
number of bits dedicated to marking of the running length of clean
words
|
Modifier and Type | Method and Description |
---|---|
RunningLengthWord32 |
clone() |
int |
getNumberOfLiteralWords()
Gets the number of literal words.
|
boolean |
getRunningBit()
Gets the running bit.
|
int |
getRunningLength()
Gets the running length.
|
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()
Return the size in uncompressed words represented by this running
length word.
|
String |
toString() |
public static final int RUNNING_LENGTH_BITS
public static final int LARGEST_LITERAL_COUNT
public static final int LARGEST_RUNNING_LENGTH_COUNT
public int getNumberOfLiteralWords()
public boolean getRunningBit()
public int getRunningLength()
public 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 RunningLengthWord32 clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright © 2015. All Rights Reserved.