| Modifier and Type | Field and Description |
|---|---|
private java.util.jar.JarEntry |
entry |
private java.lang.String |
entryName |
private java.util.jar.JarFile |
jarFile |
private java.net.URL |
resourceURL |
| Constructor and Description |
|---|
JarEntryResource(java.util.jar.JarFile jarFile,
java.util.jar.JarEntry entry,
java.lang.String relativePath,
java.net.URL resourceURL) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Get the relative resource name.
|
long |
getSize()
Get the size of the resource, if known.
|
java.net.URL |
getURL()
Get the complete URL of this resource.
|
java.io.InputStream |
openStream()
Open an input stream to this resource.
|
private final java.util.jar.JarFile jarFile
private final java.util.jar.JarEntry entry
private final java.lang.String entryName
private final java.net.URL resourceURL
JarEntryResource(java.util.jar.JarFile jarFile,
java.util.jar.JarEntry entry,
java.lang.String relativePath,
java.net.URL resourceURL)
public java.lang.String getName()
Resourcepublic java.net.URL getURL()
Resourcepublic java.io.InputStream openStream()
throws java.io.IOException
ResourceopenStream in interface Resourcejava.io.IOException - if an I/O error occurs