https://github.com/fdero/jcompressor
Simple file compressor and decompressor written in Java-21 using my own library bits4j (which is hosted on maven central)
https://github.com/fdero/jcompressor
compression decompression filesystem huffman-coding java java-21 maven
Last synced: 3 months ago
JSON representation
Simple file compressor and decompressor written in Java-21 using my own library bits4j (which is hosted on maven central)
- Host: GitHub
- URL: https://github.com/fdero/jcompressor
- Owner: fDero
- License: mit
- Created: 2024-09-28T09:30:27.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2025-02-06T14:34:34.000Z (5 months ago)
- Last Synced: 2025-03-30T11:41:41.049Z (4 months ago)
- Topics: compression, decompression, filesystem, huffman-coding, java, java-21, maven
- Language: Java
- Homepage:
- Size: 55.7 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
```