Class Jar.Directory
- java.lang.Object
-
- com.sun.enterprise.module.common_impl.Jar
-
- com.sun.enterprise.module.common_impl.Jar.Directory
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.File
dir
-
Constructor Summary
Constructors Constructor Description Directory(java.io.File dir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.io.File[]
fixNull(java.io.File[] f)
java.lang.String
getBaseName()
Gets the base name of the jar.java.util.jar.Manifest
getManifest()
SeeJarFile.getManifest()
for the contract.void
loadMetadata(ModuleMetadata result)
Loads all META-INF/habitats entries and store them to the list.private byte[]
readFully(java.io.File f)
-
-
-
Method Detail
-
getManifest
public java.util.jar.Manifest getManifest() throws java.io.IOException
Description copied from class:Jar
SeeJarFile.getManifest()
for the contract.- Specified by:
getManifest
in classJar
- Throws:
java.io.IOException
-
fixNull
private java.io.File[] fixNull(java.io.File[] f)
-
loadMetadata
public void loadMetadata(ModuleMetadata result)
Description copied from class:Jar
Loads all META-INF/habitats entries and store them to the list.- Specified by:
loadMetadata
in classJar
-
getBaseName
public java.lang.String getBaseName()
Description copied from class:Jar
Gets the base name of the jar.For example, "bar" for "bar.jar".
- Specified by:
getBaseName
in classJar
-
readFully
private byte[] readFully(java.io.File f) throws java.io.IOException
- Throws:
java.io.IOException
-
-