Class ArchiveUtils

java.lang.Object
is.galia.util.ArchiveUtils

public final class ArchiveUtils extends Object
  • Method Details

    • entries

      public static List<ZipEntry> entries(Path file) throws IOException
      Lists all entries in the given zip file without extracting it.
      Parameters:
      file - Zip file.
      Returns:
      All entries in the given file.
      Throws:
      IOException
    • unzip

      public static void unzip(Path zipFile, Path destDir) throws IOException
      Unzips a zip file. Permissions are preserved on platforms that support it.
      Parameters:
      zipFile - File to unzip.
      destDir - Directory to unzip the file into.
      Throws:
      IOException