HTTPS SSH

Samply ZIP Library

General information

LIB to pack a list of files into a zip file and unpack it again.

Usage

To ZIP:

File sourceDirectoryNode = new File(sourceDirectory);
List<File> allFiles = Zip.generateFileList(sourceDirectoryNode);
File zipFile = new File(zipFileName);

// To preserve directory structure in ZIP file
Zip.zip(allFiles, sourceDirectoryNode, zipFile);

// Without preserving directory structure in ZIP file
Zip.zip(allFiles, null, zipFile);

To unZIP:

File destination = new File(destinationDirectory);
List<File> unzippedFiles = Zip.unZip(unencryptedFile, destination);

Build

Use maven to build the jar:

mvn clean install