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