|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.util.ZipUtil
public final class ZipUtil
Contains utilities methods in relation to Zip operations.
| Method Summary | |
|---|---|
static java.io.File |
getEntryAsTemp(java.util.zip.ZipFile zipFile,
java.lang.String entryName)
Create a temporary File from a given entry of a given ZipFile. |
static void |
unzipArchive(java.io.File zipFile,
java.io.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 java.io.File getEntryAsTemp(java.util.zip.ZipFile zipFile,
java.lang.String entryName)
throws org.ow2.petals.kernel.api.server.PetalsException,
java.io.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.kernel.api.server.PetalsException - if entry can't be found or if an error occured during zip
reading
java.io.IOException
public static void unzipArchive(java.io.File zipFile,
java.io.File destDir)
throws java.io.IOException
zipFile - the File to unzip, must not be nulldestDir - the destination directory, can be null
java.io.IOException - if an I/O error occurred
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||