Simple file compressor and decompressor written in Java-21.
This project makes use of my own library bits4j.
To build the project locally, Apache Maven and Java-21 neeed to be installed on the host machine. To build the project, run the following command:
mvn package
Assuming the build was successful, running the following command you will be able to compress the <INPUT-FILE>
, generating
an <OUTPUT-COMPRESSED-FILE>
using the Huffman algorithm
java -jar ./target/JCompressor-0.0.1-SNAPSHOT.jar --input <INPUT-FILE> --task HUFFMAN_COMPRESSION --output <OUTPUT-COMPRESSED-FILE>
Assuming the build was successful, running the following command you will be able to decompress an <INPUT-COMPRESSED-FILE>
, generating
an <OUTPUT-FILE>
using the Huffman algorithm
java -jar ./target/JCompressor-0.0.1-SNAPSHOT.jar --input <INPUT-COMPRESSED-FILE> --task HUFFMAN_DECOMPRESSION --output <OUTPUT-FILE>