java.lang.Object
com.sun.enterprise.module.common_impl.Jar
Abstraction of
JarFile so that we can handle
both a jar file and a directory image transparently.- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Jarabstract StringGets the base name of the jar.abstract ManifestSeeJarFile.getManifest()for the contract.abstract voidloadMetadata(ModuleMetadata result) Loads all META-INF/habitats entries and store them to the list.
-
Constructor Details
-
Jar
protected Jar()
-
-
Method Details
-
getManifest
SeeJarFile.getManifest()for the contract.- Throws:
IOException
-
loadMetadata
Loads all META-INF/habitats entries and store them to the list. -
getBaseName
Gets the base name of the jar.For example, "bar" for "bar.jar".
-
create
- Throws:
IOException
-