Reputation: 56249
How to compress in Java several files in one .gz file ?
Upvotes: 3
Views: 1666
Reputation: 54332
You must somehow join them before gzipping. Gzip can compress only one file, so most frequent solution is to tar
files first and them gzip
newly created tar.
Upvotes: 4