public class JarInputStreamURLArchive extends 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(URL url) |
JarInputStreamURLArchive(URL url,
Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
Iterator<String> |
getEntries()
Returns an
Iterator of the file entries. |
InputStream |
getEntry(String entryPath)
Returns the InputStream for the given entry name.
|
URL |
getEntryAsURL(String entryPath)
Returns the URL for the given entry name.
|
URL |
getRootURL() |
public JarInputStreamURLArchive(URL url) throws IOException
IOExceptionpublic JarInputStreamURLArchive(URL url, Logger logger) throws IOException
IOExceptionpublic Iterator<String> getEntries()
ArchiveIterator of the file entries. Each String represents
a file name relative to the root of the module.getEntries in interface Archivepublic InputStream getEntry(String entryPath) throws IOException
ArchivegetEntry in interface ArchiveentryPath - the file name relative to the root of the module.IOExceptionpublic URL getEntryAsURL(String entryPath) throws IOException
ArchivegetEntryAsURL in interface ArchiveentryPath - the file name relative to the root of the module.IOExceptionpublic URL getRootURL()
getRootURL in interface ArchiveCopyright © 2023. All rights reserved.