Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/fdero/jcompressor
- Owner: fDero
- License: mit
- Created: 2024-09-28T09:30:27.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2024-10-24T20:18:15.000Z (2 months ago)
- Last Synced: 2024-10-26T07:24:52.616Z (2 months ago)
- Topics: compression, decompression, filesystem, huffman-coding, java, java-21, maven
- Language: Java
- Homepage:
- Size: 51.8 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```