|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.log4j.lf5.util.Resource
public class Resource
Resource encapsulates access to Resources via the Classloader.
Field Summary | |
---|---|
protected String |
_name
|
Constructor Summary | |
---|---|
Resource()
Default, no argument constructor. |
|
Resource(String name)
Construct a Resource given a name. |
Method Summary | |
---|---|
InputStream |
getInputStream()
Get the InputStream for this Resource. |
InputStreamReader |
getInputStreamReader()
Get the InputStreamReader for this Resource. |
String |
getName()
Get the name of the resource. |
URL |
getURL()
Get the URL of the Resource. |
void |
setName(String name)
Set the name of the resource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String _name
Constructor Detail |
---|
public Resource()
public Resource(String name)
setName(String)
Method Detail |
---|
public void setName(String name)
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.
getName()
public String getName()
setName(java.lang.String)
public InputStream getInputStream()
getInputStreamReader()
,
ResourceUtils
public InputStreamReader getInputStreamReader()
getInputStream()
,
ResourceUtils
public URL getURL()
ResourceUtils
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |