com.sun.enterprise.util.zip
Class ZipFile
java.lang.Object
com.sun.enterprise.util.zip.ZipFile
public class ZipFile
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZipFile
public ZipFile(String zipFilename,
String explodeDirName)
throws ZipFileException
- Throws:
ZipFileException
ZipFile
public ZipFile(InputStream inStream,
String anExplodeDirName)
throws ZipFileException
- Throws:
ZipFileException
ZipFile
public ZipFile(File zipFile,
File anExplodeDir)
throws ZipFileException
- Throws:
ZipFileException
ZipFile
public ZipFile(InputStream inStream,
File anExplodeDir)
throws ZipFileException
- Throws:
ZipFileException
explode
public ArrayList<String> explode()
throws ZipFileException
- Explodes files as usual, and then explodes every jar file found. All
explosions are copied relative the same root directory.
It does a case-sensitive check for files that end with ".jar"
will comment out for later possbile use
public ArrayList explodeAll() throws ZipFileException
{
return doExplode(this);
}
- Throws:
ZipFileException
extractJar
public static void extractJar(String jarEntryName,
JarFile earFile,
File jarFile)
throws ZipFileException
- Extracts the named jar file from the ear.
- Parameters:
jarEntryName - name of the jar fileearFile - application archivejarFile - locaton of the jar file where the jar entry
will be extracted
- Throws:
ZipFileException - if an error while extracting the jar
getFileList
public ArrayList getFileList()
Copyright © 2012 GlassFish Community. All Rights Reserved.