Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fdero/jcompressor

Simple file compressor and decompressor written in Java-21 using my own library bits4j
https://github.com/fdero/jcompressor

compression decompression filesystem huffman-coding java java-21 maven

Last synced: 2 months ago
JSON representation

Simple file compressor and decompressor written in Java-21 using my own library bits4j

Awesome Lists containing this project

README

        

# JCompressor

Simple file compressor and decompressor written in Java-21.
This project makes use of my own library [bits4j](https://github.com/fDero/Bits4j).

### Building from source
To build the project locally, [Apache Maven](https://maven.apache.org/) and
[Java-21](https://docs.aws.amazon.com/corretto/latest/corretto-21-ug/downloads-list.html)
neeed to be installed on the host machine. To build the project, run the following command:
```bash
mvn package
```

### Performing Huffman compression
Assuming the build was successful, running the following command you will be able to compress the ``, generating
an `` using the [Huffman algorithm](https://en.wikipedia.org/wiki/Huffman_coding)
```
java -jar ./target/JCompressor-0.0.1-SNAPSHOT.jar --input --task HUFFMAN_COMPRESSION --output
```

### Performing Huffman decompression
Assuming the build was successful, running the following command you will be able to decompress an ``, generating
an `` using the [Huffman algorithm](https://en.wikipedia.org/wiki/Huffman_coding)
```
java -jar ./target/JCompressor-0.0.1-SNAPSHOT.jar --input --task HUFFMAN_DECOMPRESSION --output
```