com.ibm.security12.sun.misc
Class Resource

java.lang.Object
  |
  +--com.ibm.security12.sun.misc.Resource

public abstract class Resource
extends Object

This class is used to represent a Resource that has been loaded from the class path.

Since:
JDK1.2
Version:
1.8, 06/26/98
Author:
David Connelly

Constructor Summary
Resource()
           
 
Method Summary
 byte[] getBytes()
          Returns the Resource data as an array of bytes.
 Certificate[] getCertificates()
          Returns theCertificates for the Resource, or null if none.
abstract  URL getCodeSourceURL()
          Returns the CodeSource URL for the Resource.
abstract  int getContentLength()
          Returns the length of the Resource data, or -1 if unknown.
abstract  InputStream getInputStream()
          Returns an InputStream for reading the Resource data.
 Manifest getManifest()
          Returns the Manifest for the Resource, or null if none.
abstract  String getName()
          Returns the name of the Resource.
abstract  URL getURL()
          Returns the URL of the Resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Resource

public Resource()
Method Detail

getName

public abstract String getName()
Returns the name of the Resource.

getURL

public abstract URL getURL()
Returns the URL of the Resource.

getCodeSourceURL

public abstract URL getCodeSourceURL()
Returns the CodeSource URL for the Resource.

getInputStream

public abstract InputStream getInputStream()
                                    throws IOException
Returns an InputStream for reading the Resource data.

getContentLength

public abstract int getContentLength()
                              throws IOException
Returns the length of the Resource data, or -1 if unknown.

getBytes

public byte[] getBytes()
                throws IOException
Returns the Resource data as an array of bytes.

getManifest

public Manifest getManifest()
                     throws IOException
Returns the Manifest for the Resource, or null if none.

getCertificates

public Certificate[] getCertificates()
Returns theCertificates for the Resource, or null if none.