public abstract class AbstractResourceHandle extends java.lang.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.
|
java.util.jar.Attributes |
getAttributes()
Return the Attributes of the resource, or null if none.
|
byte[] |
getBytes()
Returns this resource data as an array of bytes.
|
java.security.cert.Certificate[] |
getCertificates()
Return the Certificates of the resource, or null if none.
|
java.util.jar.Manifest |
getManifest()
Returns the Manifest of the JAR file from which this resource
was loaded, or null if none.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCodeSourceUrl, getContentLength, getInputStream, getName, getUrl, isDirectorypublic byte[] getBytes()
throws java.io.IOException
ResourceHandlegetBytes in interface ResourceHandlejava.io.IOExceptionpublic java.util.jar.Manifest getManifest()
throws java.io.IOException
ResourceHandlegetManifest in interface ResourceHandlejava.io.IOExceptionpublic java.security.cert.Certificate[] getCertificates()
ResourceHandlegetCertificates in interface ResourceHandlepublic java.util.jar.Attributes getAttributes()
throws java.io.IOException
ResourceHandlegetAttributes in interface ResourceHandlejava.io.IOExceptionpublic void close()
ResourceHandleclose in interface ResourceHandlepublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2004-2024 The Apache Software Foundation. All Rights Reserved.