public class URLArchive extends java.lang.Object implements Archive
Archive when container returns a url
that is not one of the familiar URL types like file or jar URLs. So, we can
not recurssively walk thru' it's hierarchy. As a result getEntries()
returns an empty collection.| Constructor and Description |
|---|
URLArchive(java.net.URL url) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator<java.lang.String> |
getEntries()
Returns an
Iterator of the file entries. |
java.io.InputStream |
getEntry(java.lang.String entryPath)
Returns the InputStream for the given entry name.
|
java.net.URL |
getEntryAsURL(java.lang.String entryPath)
Returns the URL for the given entry name.
|
java.net.URL |
getRootURL() |
public java.util.Iterator<java.lang.String> getEntries()
ArchiveIterator of the file entries. Each String represents
a file name relative to the root of the module.getEntries in interface Archivepublic java.io.InputStream getEntry(java.lang.String entryPath)
throws java.io.IOException
Archivepublic java.net.URL getEntryAsURL(java.lang.String entryPath)
throws java.io.IOException
ArchivegetEntryAsURL in interface ArchiveentryPath - the file name relative to the root of the module.java.io.IOExceptionpublic java.net.URL getRootURL()
getRootURL in interface Archive