Skip to content

Linschlager/kotlin-huffman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kotlin-huffman

Huffman encoding implemented in Kotlin. You can find the executable JAR-file here

Disclaimer: This is a purely educational project and should not be used in a production environment

CLI Usage

Parameter Type Description Format
--file String Path to input file file containing encoded data or text
--ht-file String Path to huffman tree <ASCII>:<Huffman>, Delimiter: -
--out String Path to output file encoded data or decoded text
--ht-out String Path to huffman output file <ASCII>:<Huffman>, Delimiter: -
--encode Switch Flag to encode the input file generating a custom huffman tree
--decode Switch Flag to decrypt the input file using the given huffman tree

Currently, the program does not overwrite any existing files but rather throw an error and abort

Example usage

java -jar kotlin-huffman.jar --file=input/output-mada.dat --ht-file=input/dec_tab-mada.txt --decode

java -jar kotlin-huffman.jar --file=input/sample-text.txt --ht-out=out/dec_tab-mada.txt --out=out/output-mada.dat --encode 

About

Huffman coding implemented in Kotlin

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages