Class Zipper

java.lang.Object
org.adempiere.pipo2.Zipper

public class Zipper extends Object
Compress package
Version:
$Id: ImportFAJournal2.java,v 1.0 $
Author:
Rob Klein
  • Constructor Details

    • Zipper

      public Zipper()
  • Method Details

    • 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)