A B C D E F G H L M R S T 

A

addOne(int, byte[]) - Static method in class Huffman
Append bit 1 to the code (and increase the bitlength by 1).
addZero(int, byte[]) - Static method in class Huffman
Append zero bit to the code (and increase the bitlength by 1).

B

bitLength() - Method in class Huffman
Length of encoded data in bits.
bitsCounted() - Method in class Huffman.Node
Length of source data in bits.

C

cde - Variable in class Huffman.Node
code (variable length)
codeLength - Variable in class Huffman.Node
code length in bits
compareTo(Huffman.Node) - Method in class Huffman.Node
Less frequent nodes come first.

D

decode(byte[]) - Method in class Huffman
Decoding the byte array using this prefixcode.

E

encode(byte[]) - Method in class Huffman
Encoding the byte array using this prefixcode.

F

frequency - Variable in class Huffman.Node
frequency of the symbol in source data
fromByteArray(byte[]) - Static method in class Huffman
Deserialization of the code tree from bytearray.
fromFile(String) - Static method in class Huffman
Decoding from the file.

G

getBit(int, byte[]) - Static method in class Huffman
Reading a bit from the bitarray.

H

hpack(String, String) - Static method in class Huffman
Compressing a file.
Huffman - Class in <Unnamed>
Prefix codes and Huffman tree.
Huffman(byte[]) - Constructor for class Huffman
Constructor to build the Huffman code for a given bytearray.
Huffman.Node - Class in <Unnamed>
Inner class for the node of Huffman tree.
Huffman.Node() - Constructor for class Huffman.Node
Default constructor.
Huffman.Node(byte, int) - Constructor for class Huffman.Node
Constructor for leaves with byte data.
Huffman.Node(char, int) - Constructor for class Huffman.Node
Constructor for leaves with char data.
Huffman.Node(int, Huffman.Node, Huffman.Node) - Constructor for class Huffman.Node
Constructor for intermediate nodes.
Huffman.Node(Huffman.Node, Huffman.Node, int) - Constructor for class Huffman.Node
Constructor for intermediate nodes.
hunpack(String, String) - Static method in class Huffman
Decompressing a file.

L

leaves - Variable in class Huffman
Coding table represented as an array of leaves of the code tree
left - Variable in class Huffman.Node
left child, 0 is appended to the code

M

main(String[]) - Static method in class Huffman
Main method.

R

removeSmallest(List<Huffman.Node>) - Static method in class Huffman
Finding a tree with minimal root frequency from the rootlist.
right - Variable in class Huffman.Node
right child, 1 is appended to the code
root - Variable in class Huffman
Root of the code tree

S

serialVersionUID - Static variable in class Huffman.Node
serialization version id
serialVersionUID - Static variable in class Huffman
serialization version id
setBit(int, byte[], boolean) - Static method in class Huffman
Set a bit value in bitarray.
setCode(int, byte[]) - Method in class Huffman.Node
Calculating codes for this tree starting from the root (recursive).
symbol - Variable in class Huffman.Node
byte to encode (for the leaf nodes)

T

toByteArray() - Method in class Huffman
Serialization of this prefixcode.
toFile(byte[], String) - Static method in class Huffman
Encoding and packing together the code tree and encoded data.
toString() - Method in class Huffman
Conversion to string for debugging.
A B C D E F G H L M R S T