|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinfo.aduna.io.ZipUtil
public class ZipUtil
Zip-related utilities.
| Constructor Summary | |
|---|---|
ZipUtil()
|
|
| Method Summary | |
|---|---|
static void |
extract(File zipFile,
File destDir)
Extract the contents of a zipfile to a directory. |
static void |
extract(ZipFile zipFile,
File destDir)
Extract the contents of a zipfile to a directory. |
static boolean |
isZipStream(InputStream in)
|
static void |
writeEntry(ZipFile zipFile,
ZipEntry entry,
File destDir)
Write an entry to a zip file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ZipUtil()
| Method Detail |
|---|
public static boolean isZipStream(InputStream in)
throws IOException
IOException
public static void extract(File zipFile,
File destDir)
throws IOException
zipFile - the zip file to extractdestDir - the destination directory
IOException - when something untowards happens during the extraction process
public static void extract(ZipFile zipFile,
File destDir)
throws IOException
zipFile - the zip file to extractdestDir - the destination directory
IOException - when something untowards happens during the extraction process
public static void writeEntry(ZipFile zipFile,
ZipEntry entry,
File destDir)
throws IOException
zipFile - the zip file to read fromentry - the entry to processdestDir - the file to write to
IOException - if the entry could not be processed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||