Skip to content

coderodde/HuffmanCompressorApp.java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Compressing

In order to compress a file file.dat, invoke the result .jar file as follows:

java -jar HuffmanCompressorApp.jar file.dat

That will create a compressed file file.data.huf.

Decompressing

In order to decompress a .huf file, invoke as follows:

java -jar HuffmanCompressorApp.jar file.dat.huf uncompressed.file.dat

Checking if two files are same

On Windows command line, type:

fc /b FILE1 FILE2

For example:

fc /b file.dat uncompressed.file.dat

On *nix, type:

cmp -s FILE1 FILE2

For example:

cmp -s file.dat uncompressed.file.dat

About

A tiny Java library for computing Huffman encodings.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages