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, wait
getCodeSourceUrl, getContentLength, getInputStream, getName, getUrl, isDirectory
public AbstractResourceHandle()
public byte[] getBytes() throws IOException
ResourceHandle
getBytes
in interface ResourceHandle
IOException
public Manifest getManifest() throws IOException
ResourceHandle
getManifest
in interface ResourceHandle
IOException
public Certificate[] getCertificates()
ResourceHandle
getCertificates
in interface ResourceHandle
public Attributes getAttributes() throws IOException
ResourceHandle
getAttributes
in interface ResourceHandle
IOException
public void close()
ResourceHandle
close
in interface ResourceHandle
elasticsearch-river-jdbc