public class DirectoryInsideJarURLArchive extends ArchiveBase implements Archive
Archive
which is used when container
returns a jar: URL. e.g. jar:file:/tmp/a_ear/b.war!/WEB-INF/classes/Constructor and Description |
---|
DirectoryInsideJarURLArchive(java.net.URL url,
java.lang.String descriptorLocation) |
DirectoryInsideJarURLArchive(java.net.URL url,
java.lang.String descriptorLocation,
java.util.logging.Logger logger) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this archive and associated InputStream.
|
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.
|
getDescriptorLocation, getDescriptorStream, getRootURL, setDescriptorLocation, setRootURL, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDescriptorStream, getRootURL
public DirectoryInsideJarURLArchive(java.net.URL url, java.lang.String descriptorLocation) throws java.io.IOException
java.io.IOException
public DirectoryInsideJarURLArchive(java.net.URL url, java.lang.String descriptorLocation, java.util.logging.Logger logger) throws java.io.IOException
java.io.IOException
public java.util.Iterator<java.lang.String> getEntries()
Archive
Iterator
of the file entries. Each String represents
a file name relative to the root of the module.getEntries
in interface Archive
public java.io.InputStream getEntry(java.lang.String entryPath) throws java.io.IOException
Archive
getEntry
in interface Archive
getEntry
in class ArchiveBase
entryPath
- the file name relative to the root of the module.java.io.IOException
public java.net.URL getEntryAsURL(java.lang.String entryPath) throws java.io.IOException
Archive
getEntryAsURL
in interface Archive
entryPath
- the file name relative to the root of the module.java.io.IOException
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference