Basic file compressor/decompressor using the Huffman algorithm. Note the decompressor (Puff) is not in this repo.
- Compile java files.
- Run
java Huff [file to compress]
. Outputs a file with the same prefix + a .zip suffix in the same directory as the input. - Run
java Puff [compressed/huffed file]
to decompress. Will output in the same way as compression but as a .txt file.
Note: This code takes zero safety precautions and will simply overwrite anything named the same as the output.