JarFile so that we can handle
both a jar file and a directory image transparently.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static Jar | |
| public abstract String | |
| public abstract Manifest | |
| public abstract void |
| Jar | back to summary |
|---|---|
| protected Jar() | |
| create | back to summary |
|---|---|
| public static Jar create(File file) throws IOException | |
| getBaseName | back to summary |
|---|---|
| public abstract String getBaseName() Gets the base name of the jar. For example, "bar" for "bar.jar". | |
| getManifest | back to summary |
|---|---|
| public abstract Manifest getManifest() throws IOException See | |
| loadMetadata | back to summary |
|---|---|
| public abstract void loadMetadata(ModuleMetadata result) Loads all META-INF/habitats entries and store them to the list. | |
| Modifier and Type | Method and Description |
|---|---|
| public String | getBaseName()
Implements abstract com. Gets the base name of the jar. |
| public Manifest | getManifest()
Implements abstract com. See |
| public void | loadMetadata(ModuleMetadata result)
Implements abstract com. Loads all META-INF/habitats entries and store them to the list. |
| file | back to summary |
|---|---|
| private final File file | |
| jar | back to summary |
|---|---|
| private final JarFile jar | |
| Archive | back to summary |
|---|---|
| public Archive(File jar) throws IOException | |
| getBaseName | back to summary |
|---|---|
| public String getBaseName() Implements abstract com. Doc from com. Gets the base name of the jar. For example, "bar" for "bar.jar". | |
| getManifest | back to summary |
|---|---|
| public Manifest getManifest() throws IOException Implements abstract com. Doc from com. See | |
| loadMetadata | back to summary |
|---|---|
| public void loadMetadata(ModuleMetadata result) Implements abstract com. Doc from com. Loads all META-INF/habitats entries and store them to the list. | |
| Modifier and Type | Method and Description |
|---|---|
| private File[] | |
| public String | getBaseName()
Implements abstract com. Gets the base name of the jar. |
| public Manifest | getManifest()
Implements abstract com. See |
| public void | loadMetadata(ModuleMetadata result)
Implements abstract com. Loads all META-INF/habitats entries and store them to the list. |
| private byte[] |
| dir | back to summary |
|---|---|
| private final File dir | |
| Directory | back to summary |
|---|---|
| public Directory(File dir) | |
| fixNull | back to summary |
|---|---|
| private File[] fixNull(File[] f) | |
| getBaseName | back to summary |
|---|---|
| public String getBaseName() Implements abstract com. Doc from com. Gets the base name of the jar. For example, "bar" for "bar.jar". | |
| getManifest | back to summary |
|---|---|
| public Manifest getManifest() throws IOException Implements abstract com. Doc from com. See | |
| loadMetadata | back to summary |
|---|---|
| public void loadMetadata(ModuleMetadata result) Implements abstract com. Doc from com. Loads all META-INF/habitats entries and store them to the list. | |
| readFully | back to summary |
|---|---|
| private byte[] readFully(File f) throws IOException | |