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 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.
`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.axis2.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`

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.