|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.utils.ZipUtils
public final class ZipUtils
This class provides a set of utilities to work with ZIP files.
Constructor Summary | |
---|---|
ZipUtils()
|
Method Summary | |
---|---|
static java.lang.String |
getZipEntryFileLocation(java.util.zip.ZipEntry zipEntry)
Returns file location for the specified zip entry. |
static java.lang.String |
getZipEntryFileName(java.util.zip.ZipEntry zipEntry)
Returns file name for the specified zip entry. |
static boolean |
unzip(java.io.File archive,
java.io.File dst)
Extracts ZIP archive contents into destination directory. |
static boolean |
unzip(java.io.File archive,
java.io.File dst,
UnzipListener listener)
Extracts ZIP archive contents into destination directory. |
static boolean |
unzip(java.lang.String archive,
java.lang.String dst)
Extracts ZIP archive contents into destination directory. |
static boolean |
unzip(java.lang.String archive,
java.lang.String dst,
UnzipListener listener)
Extracts ZIP archive contents into destination directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ZipUtils()
Method Detail |
---|
public static boolean unzip(java.lang.String archive, java.lang.String dst)
archive
- ZIP file pathdst
- destination directory path
public static boolean unzip(java.lang.String archive, java.lang.String dst, UnzipListener listener)
archive
- ZIP file pathdst
- destination directory pathlistener
- extraction process listener
public static boolean unzip(java.io.File archive, java.io.File dst)
archive
- ZIP filedst
- destination directory
public static boolean unzip(java.io.File archive, java.io.File dst, UnzipListener listener)
archive
- ZIP filedst
- destination directorylistener
- extraction process listener
public static java.lang.String getZipEntryFileName(java.util.zip.ZipEntry zipEntry)
zipEntry
- zip entry to process
public static java.lang.String getZipEntryFileLocation(java.util.zip.ZipEntry zipEntry)
zipEntry
- zip entry to process
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |