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

Quick Search    Search Deep

java.net
Class URLClassLoader.RemoteResource  view URLClassLoader.RemoteResource download URLClassLoader.RemoteResource.java

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

static final class URLClassLoader.RemoteResource
extends URLClassLoader.Resource

A resource from some remote location.


Field Summary
private  int length
           
(package private)  URLClassLoader.URLLoader loader
           
private  java.io.InputStream stream
           
private  URL url
           
 
Constructor Summary
(package private) URLClassLoader.RemoteResource(URLClassLoader.RemoteURLLoader loader, java.lang.String name, URL url, java.io.InputStream stream, int length)
           
 
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

url

private final URL url

stream

private final java.io.InputStream stream

length

private final int length

loader

final URLClassLoader.URLLoader loader
Constructor Detail

URLClassLoader.RemoteResource

URLClassLoader.RemoteResource(URLClassLoader.RemoteURLLoader loader,
                              java.lang.String name,
                              URL url,
                              java.io.InputStream stream,
                              int length)
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.