com.ebmwebsourcing.petalsbpm.utils.server
Class ZipHelper

java.lang.Object
  extended by com.ebmwebsourcing.petalsbpm.utils.server.ZipHelper

public class ZipHelper
extends java.lang.Object

Zip Helper For handling zip files

Author:
nfleury

Method Summary
 java.io.File createZipFromFolder(java.lang.String folderLocation, java.lang.String zipName)
           
static ZipHelper getInstance()
           
 boolean isZipFile(java.io.File file)
           
 void unzipFile(java.io.File file, java.io.File unzipDir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ZipHelper getInstance()

createZipFromFolder

public java.io.File createZipFromFolder(java.lang.String folderLocation,
                                        java.lang.String zipName)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

unzipFile

public void unzipFile(java.io.File file,
                      java.io.File unzipDir)
               throws java.util.zip.ZipException,
                      java.io.IOException
Throws:
java.util.zip.ZipException
java.io.IOException

isZipFile

public boolean isZipFile(java.io.File file)
                  throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2010-2011 eBM WebSourcing. All Rights Reserved.