org.apache.geronimo.kernel.classloader
Class AbstractResourceHandle

java.lang.Object
  extended by org.apache.geronimo.kernel.classloader.AbstractResourceHandle
All Implemented Interfaces:
ResourceHandle
Direct Known Subclasses:
DirectoryResourceHandle, JarResourceHandle

public abstract class AbstractResourceHandle
extends Object
implements ResourceHandle


Constructor Summary
AbstractResourceHandle()
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.geronimo.kernel.classloader.ResourceHandle
getCodeSourceUrl, getContentLength, getInputStream, getName, getUrl, isDirectory
 

Constructor Detail

AbstractResourceHandle

public AbstractResourceHandle()
Method Detail

getBytes

public byte[] getBytes()
                throws IOException
Description copied from interface: ResourceHandle
Returns this resource data as an array of bytes.

Specified by:
getBytes in interface ResourceHandle
Throws:
IOException

getManifest

public Manifest getManifest()
                     throws IOException
Description copied from interface: ResourceHandle
Returns the Manifest of the JAR file from which this resource was loaded, or null if none.

Specified by:
getManifest in interface ResourceHandle
Throws:
IOException

getCertificates

public Certificate[] getCertificates()
Description copied from interface: ResourceHandle
Return the Certificates of the resource, or null if none.

Specified by:
getCertificates in interface ResourceHandle

getAttributes

public Attributes getAttributes()
                         throws IOException
Description copied from interface: ResourceHandle
Return the Attributes of the resource, or null if none.

Specified by:
getAttributes in interface ResourceHandle
Throws:
IOException

close

public void close()
Description copied from interface: ResourceHandle
Closes a connection to the resource indentified by this handle. Releases any I/O objects associated with the handle.

Specified by:
close in interface ResourceHandle

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.