public class JarFactory extends Object
| Constructor and Description |
|---|
JarFactory(String dir)
This object provides utility methods to manipulate DOM tree.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEntry(ZipInputStream zis,
ZipEntry entry)
Gets one file entry from the zip input stream
|
void |
unJar(File jarFile)
Unjars a file.
|
void |
unJar(ZipInputStream zis)
Unjars a zip file using it's InputStream.
|
public JarFactory(String dir)
dir - Directory to unjarpublic void unJar(File jarFile) throws IOException, JarException, ZipException
jarFile - File to be unjaredIOException - if error trying to read entry.JarException - if error trying to read jar file.ZipExceptionpublic void unJar(ZipInputStream zis) throws IOException, ZipException
zis - zip input streamIOException - if error trying to read entry.JarException - if error trying to read jar file.ZipExceptionpublic String getEntry(ZipInputStream zis, ZipEntry entry) throws IOException
jarFile - the JAR file reference to retrieve entry from.entry - the file from the JAR to extract.IOException - if error trying to read entry.Copyright © 2011-2016 OpenESB Community. All Rights Reserved.