org.gcube.application.aquamaps.aquamapsservice.stubs.wrapper.utils
Class AppZip

java.lang.Object
  extended by 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
           
 
Constructor Summary
AppZip(String toZipFolder)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.gcube.common.core.utils.logging.GCUBELog logger
Constructor Detail

AppZip

public AppZip(String toZipFolder)
Method Detail

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.