| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Buffer32 | buffer
The array of words. |
| public static final int | LARGEST_LITERAL_COUNT
largest number of literal words in a run. |
| public static final int | LARGEST_RUNNING_LENGTH_COUNT
largest number of clean words in a run |
| private static final int | |
| private static final int | |
| private static final int | |
| pack-priv int | position
The position in array. |
| public static final int | RUNNING_LENGTH_BITS
number of bits dedicated to marking of the running length of clean words |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | RunningLengthWord32(final Buffer32
the buffer buffer, final int position in the array where the running length word is
located. p)Instantiates a new running length word. |
| Modifier and Type | Method and Description |
|---|---|
| public RunningLengthWord32 | |
| public int | |
| pack-priv static int | |
| public boolean | |
| pack-priv static boolean | |
| public int | |
| pack-priv static int | |
| public void | setNumberOfLiteralWords(final int
the new number of literal words number)Sets the number of literal words. |
| pack-priv static void | |
| public void | |
| pack-priv static void | |
| public void | |
| pack-priv static void | |
| public int | Returns: the intReturn the size in uncompressed words represented by this running length word. |
| public String |
| buffer | back to summary |
|---|---|
| pack-priv final Buffer32 buffer The array of words. | |
| LARGEST_LITERAL_COUNT | back to summary |
|---|---|
| public static final int LARGEST_LITERAL_COUNT largest number of literal words in a run. | |
| LARGEST_RUNNING_LENGTH_COUNT | back to summary |
|---|---|
| public static final int LARGEST_RUNNING_LENGTH_COUNT largest number of clean words in a run | |
| LITERAL_BITS | back to summary |
|---|---|
| private static final int LITERAL_BITS | |
| NOT_RUNNING_LENGTH_PLUS_RUNNING_BIT | back to summary |
|---|---|
| private static final int NOT_RUNNING_LENGTH_PLUS_RUNNING_BIT | |
| NOT_SHIFTED_LARGEST_RUNNING_LENGTH_COUNT | back to summary |
|---|---|
| private static final int NOT_SHIFTED_LARGEST_RUNNING_LENGTH_COUNT | |
| position | back to summary |
|---|---|
| pack-priv int position The position in array. | |
| RUNNING_LENGTH_BITS | back to summary |
|---|---|
| public static final int RUNNING_LENGTH_BITS number of bits dedicated to marking of the running length of clean words | |
| RUNNING_LENGTH_PLUS_RUNNING_BIT | back to summary |
|---|---|
| private static final int RUNNING_LENGTH_PLUS_RUNNING_BIT | |
| SHIFTED_LARGEST_RUNNING_LENGTH_COUNT | back to summary |
|---|---|
| private static final int SHIFTED_LARGEST_RUNNING_LENGTH_COUNT | |
| RunningLengthWord32 | back to summary |
|---|---|
| pack-priv RunningLengthWord32(final Buffer32 buffer, final int p) Instantiates a new running length word.
| |
| clone | back to summary |
|---|---|
| public RunningLengthWord32 clone() throws CloneNotSupportedException Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| getNumberOfLiteralWords | back to summary |
|---|---|
| public int getNumberOfLiteralWords() Gets the number of literal words.
| |
| getNumberOfLiteralWords | back to summary |
|---|---|
| pack-priv static int getNumberOfLiteralWords(final Buffer32 buffer, final int position) | |
| getRunningBit | back to summary |
|---|---|
| public boolean getRunningBit() Gets the running bit.
| |
| getRunningBit | back to summary |
|---|---|
| pack-priv static boolean getRunningBit(final Buffer32 buffer, final int position) | |
| getRunningLength | back to summary |
|---|---|
| public int getRunningLength() Gets the running length.
| |
| getRunningLength | back to summary |
|---|---|
| pack-priv static int getRunningLength(final Buffer32 buffer, final int position) | |
| setNumberOfLiteralWords | back to summary |
|---|---|
| public void setNumberOfLiteralWords(final int number) Sets the number of literal words.
| |
| setNumberOfLiteralWords | back to summary |
|---|---|
| pack-priv static void setNumberOfLiteralWords(final Buffer32 buffer, final int position, final int number) | |
| setRunningBit | back to summary |
|---|---|
| public void setRunningBit(final boolean b) Sets the running bit.
| |
| setRunningBit | back to summary |
|---|---|
| pack-priv static void setRunningBit(final Buffer32 buffer, final int position, final boolean b) | |
| setRunningLength | back to summary |
|---|---|
| public void setRunningLength(final int number) Sets the running length.
| |
| setRunningLength | back to summary |
|---|---|
| pack-priv static void setRunningLength(final Buffer32 buffer, final int position, final int number) | |
| size | back to summary |
|---|---|
| public int size() Return the size in uncompressed words represented by this running length word.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |