Class FileUnpacker


  • public class FileUnpacker
    extends Object
    A utility class for unpacking file archives.
    • Constructor Detail

      • FileUnpacker

        public FileUnpacker()
    • Method Detail

      • unpackZip

        public static void unpackZip​(File archiveFile,
                                     File targetDir,
                                     Component parentComponent)
                              throws IOException
        Unpacks the given archive file which is in ZIP format to the specified target directory. The method uses a Swing progress monitor to visualize the unpack process.
        Parameters:
        archiveFile - the ZIP file
        targetDir - the target directory
        parentComponent - the parent component to be used by the progress monitor
        Throws:
        IOException - if an I/O error occurs