public class ZipFile extends Object
Constructor and Description |
---|
ZipFile(File zipFile,
File anExplodeDir) |
ZipFile(InputStream inStream,
File anExplodeDir) |
ZipFile(InputStream inStream,
String anExplodeDirName) |
ZipFile(String zipFilename,
String explodeDirName) |
Modifier and Type | Method and Description |
---|---|
ArrayList<String> |
explode()
Explodes files as usual, and then explodes every jar file found.
|
static void |
extractJar(String jarEntryName,
JarFile earFile,
File jarFile)
Extracts the named jar file from the ear.
|
ArrayList |
getFileList() |
public ZipFile(String zipFilename, String explodeDirName) throws ZipFileException
ZipFileException
public ZipFile(InputStream inStream, String anExplodeDirName) throws ZipFileException
ZipFileException
public ZipFile(File zipFile, File anExplodeDir) throws ZipFileException
ZipFileException
public ZipFile(InputStream inStream, File anExplodeDir) throws ZipFileException
ZipFileException
public ArrayList<String> explode() throws ZipFileException
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); }
ZipFileException
public static void extractJar(String jarEntryName, JarFile earFile, File jarFile) throws ZipFileException
jarEntryName
- name of the jar fileearFile
- application archivejarFile
- locaton of the jar file where the jar entry will be
extractedZipFileException
- if an error while extracting the jarpublic ArrayList getFileList()
Copyright © 2018. All rights reserved.