|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nci.cagrid.common.JarUtilities
public class JarUtilities
JarUtilities Utilities to manipulate jar files
| Constructor Summary | |
|---|---|
JarUtilities()
|
|
| Method Summary | |
|---|---|
static java.lang.StringBuffer |
getFileContents(java.util.jar.JarFile jar,
java.lang.String entryName)
Gets the contents of a jar entry as a StringBuffer |
static void |
insertEntry(java.io.File jarFile,
java.lang.String entryName,
byte[] data)
Inserts an entry in a Jar file. |
static void |
jarDirectory(java.io.File dir,
java.io.File jarFile)
Places the contents of a directory in a Jar file |
static byte[] |
removeJarEntry(java.util.jar.JarFile jar,
java.lang.String entryName)
Removes an entry from a jar file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JarUtilities()
| Method Detail |
|---|
public static java.lang.StringBuffer getFileContents(java.util.jar.JarFile jar,
java.lang.String entryName)
throws java.io.IOException
jar - The jar to extract fromentryName - The name of the entry to be extracted
java.io.IOException
public static byte[] removeJarEntry(java.util.jar.JarFile jar,
java.lang.String entryName)
throws java.io.IOException
jar - The jar fileentryName - The name of the entry to remove
java.io.IOException
public static void jarDirectory(java.io.File dir,
java.io.File jarFile)
throws java.io.IOException
dir - The directoryjarFile - The jar file
java.io.IOException
public static void insertEntry(java.io.File jarFile,
java.lang.String entryName,
byte[] data)
throws java.io.IOException
jarFile - The jar file to be appendedentryName - The name of the new entrydata - The data to add to the zip
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||