Skip to content

rillis/zip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZIP

Maven License

<dependency>
  <groupId>com.github.rillis</groupId>
  <artifactId>zip</artifactId>
  <version>1.1.0</version>
</dependency>

Docs

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