Archive when container returns a file:
url that refers to a directory that contains an exploded jar file.
e.g. file:/tmp/a_ear/ejb_jar
| Modifier and Type | Field and Description |
|---|---|
| private File | directory
The directory this archive represents. |
| private List | entries
The file entries that this archive contains. |
| private Logger |
| 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. |
| private File | |
| private void |
| directory | back to summary |
|---|---|
| private File directory The directory this archive represents. | |
| entries | back to summary |
|---|---|
| private List<String> entries The file entries that this archive contains. | |
| logger | back to summary |
|---|---|
private Logger logger
| |
| DirectoryArchive | back to summary |
|---|---|
public DirectoryArchive(File directory, String descriptorLocation) throws MalformedURLException
| |
| DirectoryArchive | back to summary |
|---|---|
| public DirectoryArchive(File directory, 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. | |
| getFile | back to summary |
|---|---|
| private File getFile(String entryPath) | |
| init | back to summary |
|---|---|
| private void init(File top, File directory) | |