Class ZipUtil

java.lang.Object
de.tomatengames.util.ZipUtil

public class ZipUtil extends Object
Provides methods to handle ZIP files.
Since:
1.0
  • Method Details

    • extractZIP

      public static void extractZIP(File zipFile, Path targetDir) throws IOException
      Extracts the entries of the specified ZIP file into the specified target directory.
      Parameters:
      zipFile - The ZIP file.
      targetDir - The target directory.
      Throws:
      IOException - If an error occurs.
    • extractZIP

      public static void extractZIP(ZipFile zipFile, Path targetDir) throws IOException
      Extracts the entries of the specified ZIP file into the specified target directory.
      Parameters:
      zipFile - The ZIP file.
      targetDir - The target directory.
      Throws:
      IOException - If an error occurs.