public class JarResourceHandle extends AbstractResourceHandle
| Constructor and Description |
|---|
JarResourceHandle(JarFile jarFile,
JarEntry jarEntry,
URL codeSource) |
| Modifier and Type | Method and Description |
|---|---|
Attributes |
getAttributes()
Return the Attributes of the resource, or null if none.
|
Certificate[] |
getCertificates()
Return the Certificates of the resource, or null if none.
|
URL |
getCodeSourceUrl()
Returns the CodeSource URL for the class or resource.
|
int |
getContentLength()
Returns the length of this resource data, or -1 if unknown.
|
InputStream |
getInputStream()
Returns and InputStream for reading this resource data.
|
Manifest |
getManifest()
Returns the Manifest of the JAR file from which this resource
was loaded, or null if none.
|
String |
getName()
Return the name of the resource.
|
URL |
getUrl()
Returns the URL of the resource.
|
boolean |
isDirectory()
Does this resource refer to a directory.
|
close, getBytes, toStringpublic JarResourceHandle(JarFile jarFile, JarEntry jarEntry, URL codeSource) throws MalformedURLException
MalformedURLExceptionpublic String getName()
ResourceHandlepublic URL getUrl()
ResourceHandlepublic URL getCodeSourceUrl()
ResourceHandlepublic boolean isDirectory()
ResourceHandlepublic InputStream getInputStream() throws IOException
ResourceHandleIOExceptionpublic int getContentLength()
ResourceHandlepublic Manifest getManifest() throws IOException
ResourceHandlegetManifest in interface ResourceHandlegetManifest in class AbstractResourceHandleIOExceptionpublic Attributes getAttributes() throws IOException
ResourceHandlegetAttributes in interface ResourceHandlegetAttributes in class AbstractResourceHandleIOExceptionpublic Certificate[] getCertificates()
ResourceHandlegetCertificates in interface ResourceHandlegetCertificates in class AbstractResourceHandleelasticsearch-river-jdbc