Modifier and Type | Field and Description |
---|---|
private java.io.File |
file |
private java.util.jar.JarFile |
jar |
Constructor and Description |
---|
Archive(java.io.File jar) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBaseName()
Gets the base name of the jar.
|
java.util.jar.Manifest |
getManifest()
See
JarFile.getManifest() for the contract. |
void |
loadMetadata(ModuleMetadata result)
Loads all META-INF/habitats entries and store them to the list.
|
public Archive(java.io.File jar) throws java.io.IOException
java.io.IOException
public java.util.jar.Manifest getManifest() throws java.io.IOException
Jar
JarFile.getManifest()
for the contract.getManifest
in class Jar
java.io.IOException
public void loadMetadata(ModuleMetadata result)
Jar
loadMetadata
in class Jar
public java.lang.String getBaseName()
Jar
For example, "bar" for "bar.jar".
getBaseName
in class Jar