public class ByteWiseHuffmanTree extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ByteWiseHuffmanTree.Symbol |
| Modifier and Type | Field and Description |
|---|---|
ByteWiseHuffmanTree[] |
children |
boolean |
isLeaf |
ByteWiseHuffmanTree.Symbol |
payload |
| Constructor and Description |
|---|
ByteWiseHuffmanTree() |
| Modifier and Type | Method and Description |
|---|---|
static void |
insert(ByteWiseHuffmanTree rootNode,
int bits,
int codeLengthInBits,
ByteWiseHuffmanTree.Symbol symbol)
Insert a symbol into this huffmann tree.
|
public ByteWiseHuffmanTree.Symbol payload
public ByteWiseHuffmanTree[] children
public boolean isLeaf
public static void insert(ByteWiseHuffmanTree rootNode, int bits, int codeLengthInBits, ByteWiseHuffmanTree.Symbol symbol)
rootNode - the rootnode of the tree to insert into.bits - the bots of the codeword as int.codeLengthInBits - the length of the codeword to insert.symbol - the symbol to store in the leaf.Copyright © 2019. All rights reserved.