java.net
Class URLClassLoader.RemoteResource

java.lang.Object
java.net.URLClassLoader.Resource
java.net.URLClassLoader.RemoteResource
- Enclosing class:
- URLClassLoader
- static final class URLClassLoader.RemoteResource
- extends URLClassLoader.Resource
A resource from some remote location.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
url
private final URL url
stream
private final java.io.InputStream stream
length
private final int length
loader
final URLClassLoader.URLLoader loader
URLClassLoader.RemoteResource
URLClassLoader.RemoteResource(URLClassLoader.RemoteURLLoader loader,
java.lang.String name,
URL url,
java.io.InputStream stream,
int length)
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.