public class AppZip extends Object
Modifier and Type | Method and Description |
---|---|
void |
generateFileList(File node)
Traverse a directory and get all files,
and add the file into fileList
|
static void |
main(String[] args) |
static int |
unzipToDirectory(String zipName,
File destinationFolder) |
int |
zipIt(String zipFile)
Zip it
|
public AppZip(String toZipFolder)
public static void main(String[] args) throws IOException
IOException
public int zipIt(String zipFile) throws IOException
zipFile
- output ZIP file locationIOException
public void generateFileList(File node)
node
- file or directorypublic static int unzipToDirectory(String zipName, File destinationFolder) throws IOException
IOException
Copyright © 2017. All Rights Reserved.