Class Zipper


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

      • Zipper

        public Zipper()
    • 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)