Adempiere 3.5.2a

org.adempiere.pipo
Class CreateZipFile

java.lang.Object
  extended by org.adempiere.pipo.CreateZipFile

public class CreateZipFile
extends Object

Compress package

Version:
$Id: ImportFAJournal2.java,v 1.0 $
Author:
Rob Klein

Constructor Summary
CreateZipFile()
           
 
Method Summary
static String getParentDir(File zipFilepath)
           
static void gzipFile(File srcFile, File destFile)
           
static void tarFolder(File srcFolder, File destTarFile, String includesdir)
           
static void unpackFile(File zipFilepath, File destinationDir)
           
static void zipFolder(File srcFolder, File destZipFile, String includesdir)
          Zip the srcFolder into the destFileZipFile.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateZipFile

public CreateZipFile()
Method Detail

zipFolder

public static void zipFolder(File srcFolder,
                             File destZipFile,
                             String includesdir)
Zip the srcFolder into the destFileZipFile. All the folder subtree of the src folder is added to the destZipFile archive.

Parameters:
srcFolder - File, the path of the srcFolder
destZipFile - File, the path of the destination zipFile. This file will be created or erased.

tarFolder

public static void tarFolder(File srcFolder,
                             File destTarFile,
                             String includesdir)

gzipFile

public static void gzipFile(File srcFile,
                            File destFile)

unpackFile

public static void unpackFile(File zipFilepath,
                              File destinationDir)

getParentDir

public static String getParentDir(File zipFilepath)

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.