Class JarInspector
- java.lang.Object
-
- com.ensoftcorp.open.java.commons.bytecode.JarInspector
-
public class JarInspector extends java.lang.Object
A wrapper around the Java zip utilities to inspect Jar archives- Author:
- Ben Holland
-
-
Constructor Summary
Constructors Constructor Description JarInspector(java.io.File jarFile)
Creates a new JarModifier with the given archive to be modified
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
extractEntry(java.lang.String entry)
java.util.HashSet<java.lang.String>
getJarEntrySet()
java.io.File
getJarFile()
java.util.jar.Manifest
getManifest()
Returns the parsed manifest or null if there is no manifest
-
-
-
Field Detail
-
SEPERATOR
public static final java.lang.String SEPERATOR
The directory separator character for archive files as a string- See Also:
- Constant Field Values
-
META_INF
public static final java.lang.String META_INF
The directory that stores the manifest and jar signatures- See Also:
- Constant Field Values
-
-
Method Detail
-
getJarFile
public java.io.File getJarFile()
-
extractEntry
public byte[] extractEntry(java.lang.String entry) throws java.io.IOException
- Throws:
java.io.IOException
-
getManifest
public java.util.jar.Manifest getManifest()
Returns the parsed manifest or null if there is no manifest- Returns:
-
getJarEntrySet
public java.util.HashSet<java.lang.String> getJarEntrySet()
-
-