Instances of this class are safe for use by multiple threads.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Huffman. | |
| private final Huffman. | |
| public static final Huffman | INSTANCE
Shared instance. |
| private final Huffman. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private void | |
| private Huffman. | |
| pack-priv Huffman. | |
| public int | Returns: number of bytescharacters value)Calculates the number of bytes required to represent the given |
| public int | Returns: number of bytescharacters value, int the start index, inclusive start, int the end index, exclusive end)Calculates the number of bytes required to represent a sub-sequence of the given |
| codes | back to summary |
|---|---|
| private final Huffman. | |
| EOS | back to summary |
|---|---|
| private final Huffman. | |
| INSTANCE | back to summary |
|---|---|
| public static final Huffman INSTANCE Shared instance. | |
| root | back to summary |
|---|---|
| private final Huffman. | |
| Huffman | back to summary |
|---|---|
| private Huffman() | |
| addChar | back to summary |
|---|---|
| private void addChar(int c, int code, int bitLength) | |
| addEOS | back to summary |
|---|---|
| private void addEOS(int c, int code, int bitLength) | |
| addLeaf | back to summary |
|---|---|
| private void addLeaf(int c, int code, int bitLength, boolean isEOS) | |
| codeOf | back to summary |
|---|---|
| private Huffman. | |
| getRoot | back to summary |
|---|---|
pack-priv Huffman.
| |
| lengthOf | back to summary |
|---|---|
| public int lengthOf(CharSequence value) Calculates the number of bytes required to represent the given
| |
| lengthOf | back to summary |
|---|---|
| public int lengthOf(CharSequence value, int start, int end) Calculates the number of bytes required to represent a sub-sequence of the given
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int | |
| pack-priv final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | |
| public String |
| code | back to summary |
|---|---|
| pack-priv final int code | |
| length | back to summary |
|---|---|
| pack-priv final int length | |
| Code | back to summary |
|---|---|
| private Code(int code, int length) | |
| getCode | back to summary |
|---|---|
| public int getCode() | |
| getLength | back to summary |
|---|---|
| public int getLength() | |
| 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-
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv char | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv Huffman. | |
| pack-priv Huffman. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Huffman. | |
| pack-priv char | |
| pack-priv Huffman. | |
| pack-priv boolean | |
| pack-priv void | |
| public String |
| c | back to summary |
|---|---|
| pack-priv char c | |
| charIsSet | back to summary |
|---|---|
| pack-priv boolean charIsSet | |
| isEOSPath | back to summary |
|---|---|
| pack-priv boolean isEOSPath | |
| left | back to summary |
|---|---|
| pack-priv Huffman. | |
| right | back to summary |
|---|---|
| pack-priv Huffman. | |
| Node | back to summary |
|---|---|
| pack-priv Node() | |
| addChildIfAbsent | back to summary |
|---|---|
| pack-priv Huffman. | |
| getChar | back to summary |
|---|---|
| pack-priv char getChar() | |
| getChild | back to summary |
|---|---|
| pack-priv Huffman. | |
| isLeaf | back to summary |
|---|---|
| pack-priv boolean isLeaf() | |
| setChar | back to summary |
|---|---|
| pack-priv void setChar(char c) | |
| 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-
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| pack-priv void | |
| public void | |
| private void |
| curr | back to summary |
|---|---|
| private Huffman. | |
| len | back to summary |
|---|---|
| private int len | |
| p | back to summary |
|---|---|
| private int p | |
| Reader | back to summary |
|---|---|
| pack-priv Reader() | |
| read | back to summary |
|---|---|
| public void read(Buffer source, Appendable destination, boolean isLast) | |
| read | back to summary |
|---|---|
| pack-priv void read(Buffer source, Appendable destination, boolean reportEOS, boolean isLast) | |
| reset | back to summary |
|---|---|
| public void reset() | |
| resetProbe | back to summary |
|---|---|
| private void resetProbe() | |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private CharSequence |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Huffman. | |
| public Huffman. | |
| public boolean |
| avail | back to summary |
|---|---|
| private int avail | |
| code | back to summary |
|---|---|
| private int code | |
| curr | back to summary |
|---|---|
| private int curr | |
| end | back to summary |
|---|---|
| private int end | |
| pos | back to summary |
|---|---|
| private int pos | |
| rem | back to summary |
|---|---|
| private int rem | |
| source | back to summary |
|---|---|
| private CharSequence source | |
| Writer | back to summary |
|---|---|
| pack-priv Writer() | |
| from | back to summary |
|---|---|
| public Huffman. | |
| reset | back to summary |
|---|---|
| public Huffman. | |
| write | back to summary |
|---|---|
| public boolean write(Buffer destination) | |