Save This Page
Home » apache-log4j-1.2.15 » org.apache » log4j » lf5 » util » [javadoc | source]
org.apache.log4j.lf5.util
public class: Resource [javadoc | source]
java.lang.Object
   org.apache.log4j.lf5.util.Resource
Resource encapsulates access to Resources via the Classloader.
Field Summary
protected  String _name     
Constructor:
 public Resource() 
 public Resource(String name) 
    Construct a Resource given a name.
Method from org.apache.log4j.lf5.util.Resource Summary:
getInputStream,   getInputStreamReader,   getName,   getURL,   setName
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.log4j.lf5.util.Resource Detail:
 public InputStream getInputStream() 
    Get the InputStream for this Resource. Uses the classloader from this Resource.
 public InputStreamReader getInputStreamReader() 
    Get the InputStreamReader for this Resource. Uses the classloader from this Resource.
 public String getName() 
    Get the name of the resource. Set setName() for a description of a resource.
 public URL getURL() 
    Get the URL of the Resource. Uses the classloader from this Resource.
 public  void setName(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.