Class Zip

java.lang.Object
com.helixframework.archive.zip.Zip

public final class Zip extends Object
Utility for working with Zip archives.
  • Method Details

    • unzip

      public static void unzip(File zipFile, File destDir) throws IOException
      Unzips a given zip file to the specified destination directory.
      Parameters:
      zipFile - the zip file to be extracted
      destDir - the destination directory where the extracted files will be placed
      Throws:
      IOException - if an I/O error occurs during the extraction process
      FileNotFoundException - if the zip file does not exist
      IllegalArgumentException - if the input file is not an archive
    • isArchive

      public static boolean isArchive(File file)
      Checks if a given file is an archive.
      Parameters:
      file - the file to check
      Returns:
      true if the file is an archive, false otherwise