public class JarInputStreamURLArchive extends java.lang.Object implements Archive
Archive which is used when container
returns some form of URL from which an InputStream in jar format can be
obtained. e.g. jar:file:/tmp/a_ear/b.war!/WEB-INF/lib/pu.jar| Constructor and Description |
|---|
JarInputStreamURLArchive(java.net.URL url) |
JarInputStreamURLArchive(java.net.URL url,
java.util.logging.Logger logger) |
| 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 JarInputStreamURLArchive(java.net.URL url)
throws java.io.IOException
java.io.IOExceptionpublic JarInputStreamURLArchive(java.net.URL url,
java.util.logging.Logger logger)
throws java.io.IOException
java.io.IOExceptionpublic 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