| 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.IOExceptionpublic java.util.jar.Manifest getManifest()
throws java.io.IOException
JarJarFile.getManifest() for the contract.getManifest in class Jarjava.io.IOExceptionpublic void loadMetadata(ModuleMetadata result)
JarloadMetadata in class Jarpublic java.lang.String getBaseName()
JarFor example, "bar" for "bar.jar".
getBaseName in class Jar