Package com.sun.enterprise.util.zip
Class ZipFile
- java.lang.Object
-
- com.sun.enterprise.util.zip.ZipFile
-
public class ZipFile extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ArrayList<String>explode()Explodes files as usual, and then explodes every jar file found.static voidextractJar(String jarEntryName, JarFile earFile, File jarFile)Extracts the named jar file from the ear.ArrayListgetFileList()
-
-
-
Constructor Detail
-
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
-
-
Method Detail
-
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()
-
-