An example Huffman encoder and decoder written in Java.
The encoder can be used from the command line like:
$ java -jar encoder.jar [path to file to be encoded] [1 <= number of bytes per block <= 4] [path to write out to] e.g.
$ java -jar encoder.jar lorem.txt 1 lorem.hc
The decoder can be used similarly from the command line like:
$ java -jar decoder.jar [path to encoded file] [path to write out to] e.g.
$ java -jar decoder.jar lorem.hc decoded_lorem.txt
See report.pdf
for a description of the implementation and more instructions.