Skip to content

Simple file compressor and decompressor written in Java-21 using my own library bits4j (which is hosted on maven central)

License

Notifications You must be signed in to change notification settings

fDero/JCompressor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JCompressor

Simple file compressor and decompressor written in Java-21.
This project makes use of my own library bits4j.

Building from source

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

Performing Huffman compression

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>

Performing Huffman decompression

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>

About

Simple file compressor and decompressor written in Java-21 using my own library bits4j (which is hosted on maven central)

Topics

Resources

License

Stars

Watchers

Forks

Languages