| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Buffer | buffer
The array of words. |
| public static final int | LARGEST_LITERAL_COUNT
largest number of literal words in a run. |
| public static final long | LARGEST_RUNNING_LENGTH_COUNT
largest number of clean words in a run |
| private static final int | |
| private static final long | |
| private static final long | |
| 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 long | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv | RunningLengthWord(final Buffer
the buffer buffer, final int position in the buffer where the running length word is
located. p)Instantiates a new running length word. |
| Modifier and Type | Method and Description |
|---|---|
| public RunningLengthWord | |
| public int | |
| pack-priv static int | |
| public boolean | |
| pack-priv static boolean | |
| public long | |
| pack-priv static long | |
| public void | setNumberOfLiteralWords(final long
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 long | Returns: the sizeReturn the size in uncompressed words represented by this running length word. |
| public String |
| buffer | back to summary |
|---|---|
| pack-priv final Buffer 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 long 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 long NOT_RUNNING_LENGTH_PLUS_RUNNING_BIT | |
| NOT_SHIFTED_LARGEST_RUNNING_LENGTH_COUNT | back to summary |
|---|---|
| private static final long 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 long RUNNING_LENGTH_PLUS_RUNNING_BIT | |
| SHIFTED_LARGEST_RUNNING_LENGTH_COUNT | back to summary |
|---|---|
| private static final long SHIFTED_LARGEST_RUNNING_LENGTH_COUNT | |
| RunningLengthWord | back to summary |
|---|---|
| pack-priv RunningLengthWord(final Buffer buffer, final int p) Instantiates a new running length word.
| |
| clone | back to summary |
|---|---|
| public RunningLengthWord 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 Buffer 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 Buffer buffer, final int position) | |
| getRunningLength | back to summary |
|---|---|
| public long getRunningLength() Gets the running length.
| |
| getRunningLength | back to summary |
|---|---|
| pack-priv static long getRunningLength(final Buffer buffer, final int position) | |
| setNumberOfLiteralWords | back to summary |
|---|---|
| public void setNumberOfLiteralWords(final long number) Sets the number of literal words.
| |
| setNumberOfLiteralWords | back to summary |
|---|---|
| pack-priv static void setNumberOfLiteralWords(final Buffer buffer, final int position, final long 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 Buffer buffer, final int position, final boolean b) | |
| setRunningLength | back to summary |
|---|---|
| public void setRunningLength(final long number) Sets the running length.
| |
| setRunningLength | back to summary |
|---|---|
| pack-priv static void setRunningLength(final Buffer buffer, final int position, final long number) | |
| size | back to summary |
|---|---|
| public long 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- | |