Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.net
Class URLClassLoader.Resource  view URLClassLoader.Resource download URLClassLoader.Resource.java

java.lang.Object
  extended byjava.net.URLClassLoader.Resource
Direct Known Subclasses:
URLClassLoader.FileResource, URLClassLoader.JarURLResource, URLClassLoader.RemoteResource
Enclosing class:
URLClassLoader

abstract static class URLClassLoader.Resource
extends java.lang.Object

A Resource represents a resource in some URLLoader. It also contains all information (e.g., URL, CodeSource, Manifest and InputStream) that is necessary for loading resources and creating classes from a URL.


Field Summary
(package private)  URLClassLoader.URLLoader loader
           
 
Constructor Summary
(package private) URLClassLoader.Resource(URLClassLoader.URLLoader loader)
           
 
Method Summary
(package private)  java.security.cert.Certificate[] getCertificates()
          Returns Certificates associated with this resource, or null when there are none.
(package private)  java.security.CodeSource getCodeSource()
          Returns the non-null CodeSource associated with this resource.
(package private) abstract  java.io.InputStream getInputStream()
          Returns the non-null InputStream through which this resource can be loaded.
(package private) abstract  int getLength()
          Returns the size of this Resource in bytes or -1 when unknown.
(package private) abstract  URL getURL()
          Return a URL that can be used to access this resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

loader

final URLClassLoader.URLLoader loader
Constructor Detail

URLClassLoader.Resource

URLClassLoader.Resource(URLClassLoader.URLLoader loader)
Method Detail

getCodeSource

java.security.CodeSource getCodeSource()
Returns the non-null CodeSource associated with this resource.


getCertificates

java.security.cert.Certificate[] getCertificates()
Returns Certificates associated with this resource, or null when there are none.


getURL

abstract URL getURL()
Return a URL that can be used to access this resource.


getLength

abstract int getLength()
Returns the size of this Resource in bytes or -1 when unknown.


getInputStream

abstract java.io.InputStream getInputStream()
                                     throws java.io.IOException
Returns the non-null InputStream through which this resource can be loaded.