public abstract class AbstractResourceHandle extends Object implements ResourceHandle
| Constructor and Description |
|---|
AbstractResourceHandle() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes a connection to the resource indentified by this handle.
|
Attributes |
getAttributes()
Return the Attributes of the resource, or null if none.
|
byte[] |
getBytes()
Returns this resource data as an array of bytes.
|
Certificate[] |
getCertificates()
Return the Certificates of the resource, or null if none.
|
Manifest |
getManifest()
Returns the Manifest of the JAR file from which this resource
was loaded, or null if none.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCodeSourceUrl, getContentLength, getInputStream, getName, getUrl, isDirectorypublic AbstractResourceHandle()
public byte[] getBytes() throws IOException
ResourceHandlegetBytes in interface ResourceHandleIOExceptionpublic Manifest getManifest() throws IOException
ResourceHandlegetManifest in interface ResourceHandleIOExceptionpublic Certificate[] getCertificates()
ResourceHandlegetCertificates in interface ResourceHandlepublic Attributes getAttributes() throws IOException
ResourceHandlegetAttributes in interface ResourceHandleIOExceptionpublic void close()
ResourceHandleclose in interface ResourceHandleelasticsearch-river-jdbc