public class ZipArchiver extends Object
| Constructor and Description |
|---|
ZipArchiver() |
ZipArchiver(String[] blackList) |
| Modifier and Type | Method and Description |
|---|---|
void |
toZip(File fileToZip,
String outputFile)
Method that should be called to generate the zip.
|
protected void |
toZip(File fileToZip,
String fileName,
ZipOutputStream zipOut)
Add a file or the contents of a directory (recursively) to a zip file.
|
public ZipArchiver()
public ZipArchiver(String[] blackList)
public void toZip(File fileToZip, String outputFile) throws IOException
fileToZip - Path to directory or file to be zippedoutputFile - Full path of output fileIOExceptionprotected void toZip(File fileToZip, String fileName, ZipOutputStream zipOut) throws IOException
fileToZip - fileName - zipOut - IOExceptionCopyright © 2019 MuleSoft Inc. All rights reserved.