java.net
Class URLClassLoader.FileResource

java.lang.Object
java.net.URLClassLoader.Resource
java.net.URLClassLoader.FileResource
- Enclosing class:
- URLClassLoader
- static final class URLClassLoader.FileResource
- extends URLClassLoader.Resource
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
file
final java.io.File file
loader
final URLClassLoader.URLLoader loader
URLClassLoader.FileResource
URLClassLoader.FileResource(URLClassLoader.FileURLLoader loader,
java.io.File file)
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.