public class ZipFileUtil extends Object
| Constructor and Description |
|---|
ZipFileUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
create(String zipFilename,
List<String> filenames)
Creates/updates a zip file.
|
static void |
unzip(String zipFilename,
String destDirname)
Unzips the specified zip file to the specified destination directory.
|
public static void create(String zipFilename, List<String> filenames) throws IOException
zipFilename - the name of the zip to createfilenames - list of filename to add to the zipIOException - Error creating filepublic static void unzip(String zipFilename, String destDirname) throws IOException
zipFilename - the name of the zip file to extractdestDirname - the directory to unzip toIOException - Error unzippingCopyright © 2019 Pivotal Software, Inc.. All rights reserved.