org.apache.commons.discovery
Class Resource
java.lang.Object
org.apache.commons.discovery.Resource
public class Resource
extends java.lang.Object
'Resource' located by discovery.
Naming of methods becomes a real pain ('getClass()')
so I've patterned this after ClassLoader...
I think it works well as it will give users a point-of-reference.
- Craig R. McClanahan
- Costin Manolache
- Richard A. Sitze
protected java.lang.ClassLoader | loader
|
protected java.lang.String | name
|
protected java.net.URL | resource
|
Resource(java.lang.String resourceName, java.net.URL resource, java.lang.ClassLoader loader)
|
loader
protected final java.lang.ClassLoader loader
name
protected final java.lang.String name
resource
protected final java.net.URL resource
Resource
public Resource(java.lang.String resourceName,
java.net.URL resource,
java.lang.ClassLoader loader)
getClassLoader
public java.lang.ClassLoader getClassLoader()
Get the value of loader.
- value of loader.
getName
public java.lang.String getName()
Get the value of resourceName.
- value of resourceName.
getResource
public java.net.URL getResource()
Get the value of URL.
- value of URL.
getResourceAsStream
public java.io.InputStream getResourceAsStream()
Get the value of URL.
- value of URL.
toString
public java.lang.String toString()
Copyright (c) 2002 - Apache Software Foundation