info.aduna.io
Class ZipUtil
java.lang.Object
info.aduna.io.ZipUtil
public class ZipUtil
- extends Object
Zip-related utilities.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZipUtil
public ZipUtil()
extract
public static void extract(File zip,
File destDir)
throws IOException
- Extract the contents of a zipfile to a directory.
- Parameters:
zip - the zip file to extractdestDir - the destination directory
- Throws:
IOException - when something untowards happens during the extraction
process
writeEntry
public static void writeEntry(ZipFile zipFile,
ZipEntry entry,
File destDir)
throws IOException
- Write an entry to a zip file.
- Parameters:
zipFile - the zip file to read fromentry - the entry to processdestDir - the file to write to
- Throws:
IOException - if the entry could not be processed
Copyright © 1997-2008 Aduna. All Rights Reserved.