public final class ZipUtil extends Object
Modifier and Type | Method and Description |
---|---|
static File |
getEntryAsTemp(ZipFile zipFile,
String entryName)
Create a temporary File from a given entry of a given ZipFile.
|
static void |
unzipArchive(File zipFile,
File destDir)
Unzip given zip file into the given destination
|
public static File getEntryAsTemp(ZipFile zipFile, String entryName) throws org.ow2.petals.basisapi.exception.PetalsException, IOException
zipFile
- the Zipped file to search in, must be non nullentryName
- the name of an entry in the Zip file, must be non null and non
emptynull
.org.ow2.petals.basisapi.exception.PetalsException
- if entry can't be found or if an error occured during zip
readingIOException
public static void unzipArchive(File zipFile, File destDir) throws IOException
zipFile
- the File to unzip, cannot be nulldestDir
- the destination directory, can be nullIOException
- if an I/O error occurredCopyright © 2005-2016 Linagora. All Rights Reserved.