java.net
Class URLClassLoader.Resource

java.lang.Object
java.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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
loader
final URLClassLoader.URLLoader loader
URLClassLoader.Resource
URLClassLoader.Resource(URLClassLoader.URLLoader loader)
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.