public final class JAR extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
close(JarFile jar)
Close a JAR file.
|
static void |
create(File srcDir,
File jarFile)
Create a JAR file out of the contents of a specific directory (recursively)
|
static void |
unpack(File jarFile,
File destDir)
Unpack JAR file into destination directory.
|
public static void unpack(File jarFile, File destDir) throws IOException
jarFile - the jar file to unpackdestDir - the destination directory to unpack intoIOException - if unable to unpack jar file.public static void close(JarFile jar)
jar - the JarFile to closepublic static void create(File srcDir, File jarFile) throws IOException
srcDir - the source directoryjarFile - the destination jar file to createIOException - if unable to create the jar file, or read the source directoryCopyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.