|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.engines.talend.utils.ZipUtils
public class ZipUtils
Constructor Summary | |
---|---|
ZipUtils()
|
Method Summary | |
---|---|
static void |
copyInputStream(java.io.InputStream in,
java.io.OutputStream out)
Copy input stream. |
static java.lang.String[] |
getDirectoryNameByLevel(java.util.zip.ZipFile zipFile,
int levelNo)
Gets the directory name by level. |
static void |
unzip(java.util.zip.ZipFile zipFile,
java.io.File destDir)
Unzip. |
static void |
unzipSkipFirstLevel(java.util.zip.ZipFile zipFile,
java.io.File destDir)
Unzip skip first level. |
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 final void copyInputStream(java.io.InputStream in, java.io.OutputStream out) throws java.io.IOException
in
- the inout
- the out
java.io.IOException
- Signals that an I/O exception has occurred.public static void unzip(java.util.zip.ZipFile zipFile, java.io.File destDir)
zipFile
- the zip filedestDir
- the dest dirpublic static void unzipSkipFirstLevel(java.util.zip.ZipFile zipFile, java.io.File destDir)
zipFile
- the zip filedestDir
- the dest dirpublic static java.lang.String[] getDirectoryNameByLevel(java.util.zip.ZipFile zipFile, int levelNo)
zipFile
- the zip filelevelNo
- the level no
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |