Archive when container returns a
file: url that refers to a jar file. e.g. file:/tmp/a_ear/lib/pu.jar
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements org. |
| public Iterator | getEntries()
Implements org. java. of the file entries.
|
| public InputStream | getEntry(String
the file name relative to the root of the module. entryPath)Implements abstract org. Implements org. |
| public URL | getEntryAsURL(String
the file name relative to the root of the module. entryPath)Implements org. |
| jarFile | back to summary |
|---|---|
| private JarFile jarFile | |
| logger | back to summary |
|---|---|
private Logger logger
| |
| JarFileArchive | back to summary |
|---|---|
public JarFileArchive(URL rootUrl, JarFile jarFile, String descriptorLocation) throws MalformedURLException
| |
| JarFileArchive | back to summary |
|---|---|
| public JarFileArchive(URL rootUrl, JarFile jarFile, String descriptorLocation, Logger logger) throws MalformedURLException | |
| close | back to summary |
|---|---|
| public void close() Implements org. Doc from org. Close this archive and associated InputStream.
| |
| getEntries | back to summary |
|---|---|
| public Iterator Implements org. Doc from org. Returns an
| |
| getEntry | back to summary |
|---|---|
| public InputStream getEntry(String entryPath) throws IOException Implements abstract org. Implements org. Doc from org. Returns the InputStream for the given entry name. Returns null if no such entry exists. The entry name must be relative to the root of the module.
| |
| getEntryAsURL | back to summary |
|---|---|
| public URL getEntryAsURL(String entryPath) throws IOException Implements org. Doc from org. Returns the URL for the given entry name. Returns null if no such entry exists. The entry name must be relative to the root of the module. | |