Hack Forums
[Java] Compress multiple files in to 1 file (and reduce file size by up to 70%) - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Java] Compress multiple files in to 1 file (and reduce file size by up to 70%) (/showthread.php?tid=5542124)



Compress multiple files in to 1 file (and reduce file size by up to 70%) - matt - Feb 3, 2017

I'm not really a fan of GUI's since I might write code to do something once and then never use it again so I write the most simplistic thing to get the job done, and if I need anything changed I just edit the code. :p So here's my interpretation of a simple file packer using GZIP compression.

Packer
Spoiler (Click to View)

Unpacker
Spoiler (Click to View)