Class ZipExtractor


  • public class ZipExtractor
    extends Object
    Utility for extracting ZIP archives cross-platform, with macOS POSIX permission support and zip-slip protection.
    • Method Detail

      • extractZipAtLocation

        public static void extractZipAtLocation​(String filePathStr)
                                         throws IOException
        Extracts a ZIP archive (identified by content, not extension) into the same directory that contains it.
        Parameters:
        filePathStr - absolute path to the ZIP file
        Throws:
        IOException - on I/O errors or zip-slip attempts