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
ZipFileExceptionpublic ZipFile(InputStream inStream, String anExplodeDirName) throws ZipFileException
ZipFileExceptionpublic ZipFile(File zipFile, File anExplodeDir) throws ZipFileException
ZipFileExceptionpublic ZipFile(InputStream inStream, File anExplodeDir) throws ZipFileException
ZipFileExceptionpublic 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); }
ZipFileExceptionpublic 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 © 2017–2020 Eclipse Foundation. All rights reserved.