|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.petals.microkernel.api.util.ZipUtil
public final class ZipUtil
Contains utilities methods in relation to Zip operations.
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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
empty
null
.
org.ow2.petals.basisapi.exception.PetalsException
- if entry can't be found or if an error occured during zip
reading
IOException
public static void unzipArchive(File zipFile, File destDir) throws IOException
zipFile
- the File to unzip, cannot be nulldestDir
- the destination directory, can be null
IOException
- if an I/O error occurred
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |