Package org.esa.snap.core.util.io
Class FileUnpacker
- java.lang.Object
-
- org.esa.snap.core.util.io.FileUnpacker
-
public class FileUnpacker extends Object
A utility class for unpacking file archives.
-
-
Constructor Summary
Constructors Constructor Description FileUnpacker()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
unpackZip(File archiveFile, File targetDir, Component parentComponent)
Unpacks the given archive file which is in ZIP format to the specified target directory.
-
-
-
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 filetargetDir
- the target directoryparentComponent
- the parent component to be used by the progress monitor- Throws:
IOException
- if an I/O error occurs
-
-