public abstract class Jar
extends java.lang.Object
JarFile so that we can handle
both a jar file and a directory image transparently.| Modifier | Constructor and Description |
|---|---|
protected |
Jar() |
| Modifier and Type | Method and Description |
|---|---|
static Jar |
create(java.io.File file) |
abstract java.lang.String |
getBaseName()
Gets the base name of the jar.
|
abstract java.util.jar.Manifest |
getManifest()
See
JarFile.getManifest() for the contract. |
abstract void |
loadMetadata(ModuleMetadata result)
Loads all META-INF/habitats entries and store them to the list.
|
public abstract java.util.jar.Manifest getManifest()
throws java.io.IOException
JarFile.getManifest() for the contract.java.io.IOExceptionpublic abstract void loadMetadata(ModuleMetadata result)
public abstract java.lang.String getBaseName()
For example, "bar" for "bar.jar".
public static Jar create(java.io.File file) throws java.io.IOException
java.io.IOExceptionCopyright © 2013 Oracle Corporation. All Rights Reserved.