Archive when container returns a url
that is not one of the familiar URL types like file or jar URLs. So, we can
not recursively walk thru' its hierarchy. As a result getEntries()
returns an empty collection.
| Access | Constructor and Description |
|---|---|
| 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. |
| URLArchive | back to summary |
|---|---|
| public URLArchive(URL url, String descriptorLocation) | |
| 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. | |