org.gcube.application.aquamaps.aquamapsservice.stubs.wrapper.utils
Class AppZip
java.lang.Object
org.gcube.application.aquamaps.aquamapsservice.stubs.wrapper.utils.AppZip
public class AppZip
- extends Object
|
Field Summary |
protected static org.gcube.common.core.utils.logging.GCUBELog |
logger
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final org.gcube.common.core.utils.logging.GCUBELog logger
AppZip
public AppZip(String toZipFolder)
main
public static void main(String[] args)
throws IOException
- Throws:
IOException
zipIt
public int zipIt(String zipFile)
throws IOException
- Zip it
- Parameters:
zipFile - output ZIP file location
- Throws:
IOException
generateFileList
public void generateFileList(File node)
- Traverse a directory and get all files,
and add the file into fileList
- Parameters:
node - file or directory
unzipToDirectory
public static int unzipToDirectory(String zipName,
File destinationFolder)
throws IOException
- Throws:
IOException
Copyright © 2013. All Rights Reserved.