org.apache.xbean.classloader
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, wait
getCodeSourceUrl, getContentLength, getInputStream, getName, getUrl, isDirectory
public AbstractResourceHandle()
public byte[] getBytes() throws java.io.IOException
ResourceHandle
getBytes
in interface ResourceHandle
java.io.IOException
public java.util.jar.Manifest getManifest() throws java.io.IOException
ResourceHandle
getManifest
in interface ResourceHandle
java.io.IOException
public java.security.cert.Certificate[] getCertificates()
ResourceHandle
getCertificates
in interface ResourceHandle
public java.util.jar.Attributes getAttributes() throws java.io.IOException
ResourceHandle
getAttributes
in interface ResourceHandle
java.io.IOException
public void close()
ResourceHandle
close
in interface ResourceHandle
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005-2014. All Rights Reserved.