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

Quick Search    Search Deep

java.net
Class URLClassLoader.JarURLResource  view URLClassLoader.JarURLResource download URLClassLoader.JarURLResource.java

java.lang.Object
  extended byjava.net.URLClassLoader.Resource
      extended byjava.net.URLClassLoader.JarURLResource
Enclosing class:
URLClassLoader

static final class URLClassLoader.JarURLResource
extends URLClassLoader.Resource


Field Summary
private  java.util.jar.JarEntry entry
           
(package private)  URLClassLoader.URLLoader loader
           
private  java.lang.String name
           
 
Constructor Summary
(package private) URLClassLoader.JarURLResource(URLClassLoader.JarURLLoader loader, java.lang.String name, java.util.jar.JarEntry entry)
           
 
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)  java.io.InputStream getInputStream()
          Returns the non-null InputStream through which this resource can be loaded.
(package private)  int getLength()
          Returns the size of this Resource in bytes or -1 when unknown.
(package private)  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

entry

private final java.util.jar.JarEntry entry

name

private final java.lang.String name

loader

final URLClassLoader.URLLoader loader
Constructor Detail

URLClassLoader.JarURLResource

URLClassLoader.JarURLResource(URLClassLoader.JarURLLoader loader,
                              java.lang.String name,
                              java.util.jar.JarEntry entry)
Method Detail

getInputStream

java.io.InputStream getInputStream()
                             throws java.io.IOException
Description copied from class: URLClassLoader.Resource
Returns the non-null InputStream through which this resource can be loaded.

Specified by:
getInputStream in class URLClassLoader.Resource

getLength

int getLength()
Description copied from class: URLClassLoader.Resource
Returns the size of this Resource in bytes or -1 when unknown.

Specified by:
getLength in class URLClassLoader.Resource

getCertificates

java.security.cert.Certificate[] getCertificates()
Description copied from class: URLClassLoader.Resource
Returns Certificates associated with this resource, or null when there are none.

Overrides:
getCertificates in class URLClassLoader.Resource

getURL

URL getURL()
Description copied from class: URLClassLoader.Resource
Return a URL that can be used to access this resource.

Specified by:
getURL in class URLClassLoader.Resource

getCodeSource

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