Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.axis2.classloader
Class AbstractResourceHandle

    java.lang.Object
      org.apache.axis2.classloader.AbstractResourceHandle

All Implemented Interfaces:
  ResourceHandle

Direct Known Subclasses:
  DirectoryResourceHandle, JarResourceHandle

    public abstract class AbstractResourceHandle

extends java.lang.Object
implements ResourceHandle

Version:
  $Rev: 704201 $ $Date: 2008-10-14 00:22:25 +0530 (Tue, 14 Oct 2008) $

Constructor Summary
`AbstractResourceHandle()`

Method Summary
`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()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Methods inherited from interface org.apache.axis2.classloader.ResourceHandle
`getCodeSourceUrl, getContentLength, getInputStream, getName, getUrl, isDirectory`

Constructor Detail

### AbstractResourceHandle

    public AbstractResourceHandle()

Method Detail

### getBytes

    public byte[] getBytes()
                    throws java.io.IOException

  Description copied from interface: `ResourceHandle`
  Returns this resource data as an array of bytes.

  Specified by:
    `getBytes` in interface `ResourceHandle`
  Throws:
    `java.io.IOException`

### getManifest

    public java.util.jar.Manifest getManifest()
                                       throws java.io.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:
    `java.io.IOException`

### getCertificates

    public java.security.cert.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 java.util.jar.Attributes getAttributes()
                                           throws java.io.IOException

  Description copied from interface: `ResourceHandle`
  Return the Attributes of the resource, or null if none.

  Specified by:
    `getAttributes` in interface `ResourceHandle`
  Throws:
    `java.io.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 java.lang.String toString()

  Overrides:
    `toString` in class `java.lang.Object`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.