Methods Summary |
---|
public java.io.InputStream | getInputStream()Get the InputStream for this Resource. Uses the classloader
from this Resource.
InputStream in = ResourceUtils.getResourceAsStream(this, this);
return (in);
|
public java.io.InputStreamReader | getInputStreamReader()Get the InputStreamReader for this Resource. Uses the classloader from
this Resource.
InputStream in = ResourceUtils.getResourceAsStream(this, this);
if (in == null) {
return null;
}
InputStreamReader reader = new InputStreamReader(in);
return reader;
|
public java.lang.String | getName()Get the name of the resource. Set setName() for a description of
a resource.
return (_name);
|
public java.net.URL | getURL()Get the URL of the Resource. Uses the classloader from this Resource.
return (ResourceUtils.getResourceAsURL(this, this));
|
public void | setName(java.lang.String name)Set the name of the resource.
A resource is some data (images, audio, text, etc) that can be accessed
by class code in a way that is independent of the location of the code.
The name of a resource is a "/"-separated path name that identifies
the resource.
_name = name;
|