<dependency>
<groupId>com.github.rillis</groupId>
<artifactId>zip</artifactId>
<version>1.1.0</version>
</dependency>
Classes:
com.github.rillis.Zip
Methods:
//Zip multiple files/folders. Returns .zip file itself.
Zip.zip(File[] fileToZip, File finalZipFile) : File
throws FileNotFoundException, IOException.
//Unzip to destination folder, create folder if it doesn't exists. Returns destFolder.
Zip.unZip(File zipFile, File destFolder) : File
throws FileNotFoundException, IOException.
Config:
//Buffer size
int Zip.BUFFER_SIZE = 4096