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

Quick Search    Search Deep

java.net
Class URLClassLoader.FileResource  view URLClassLoader.FileResource download URLClassLoader.FileResource.java

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

static final class URLClassLoader.FileResource
extends URLClassLoader.Resource


Field Summary
(package private)  java.io.File file
           
(package private)  URLClassLoader.URLLoader loader
           
 
Constructor Summary
(package private) URLClassLoader.FileResource(URLClassLoader.FileURLLoader loader, java.io.File file)
           
 
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.
 int getLength()
          Returns the size of this Resource in bytes or -1 when unknown.
 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

file

final java.io.File file

loader

final URLClassLoader.URLLoader loader
Constructor Detail

URLClassLoader.FileResource

URLClassLoader.FileResource(URLClassLoader.FileURLLoader loader,
                            java.io.File file)
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

public 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

getURL

public 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.


getCertificates

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