Package com.helixframework.archive.zip
Class Zip
java.lang.Object
com.helixframework.archive.zip.Zip
Utility for working with Zip archives.
-
Method Summary
-
Method Details
-
unzip
Unzips a given zip file to the specified destination directory.- Parameters:
zipFile- the zip file to be extracteddestDir- the destination directory where the extracted files will be placed- Throws:
IOException- if an I/O error occurs during the extraction processFileNotFoundException- if the zip file does not existIllegalArgumentException- if the input file is not an archive
-
isArchive
Checks if a given file is an archive.- Parameters:
file- the file to check- Returns:
- true if the file is an archive, false otherwise
-