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
Resource(String resourceName, URL resource, ClassLoader loader)
|
loader
protected final ClassLoader loader
name
protected final String name
resource
protected final URL resource
Resource
public Resource(String resourceName,
URL resource,
ClassLoader loader)
getClassLoader
public ClassLoader getClassLoader()
Get the value of loader.
getName
public String getName()
Get the value of resourceName.
getResource
public URL getResource()
Get the value of URL.
getResourceAsStream
public InputStream getResourceAsStream()
Get the value of URL.
toString
public String toString()
Copyright (c) 2002 - Apache Software Foundation