Save This Page
Home » commons-discovery-0.4-src » org.apache.commons » discovery » [javadoc | source]
org.apache.commons.discovery
public class: Resource [javadoc | source]
java.lang.Object
   org.apache.commons.discovery.Resource

Direct Known Subclasses:
    ResourceClass

'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.
Field Summary
protected final  String name     
protected final  URL resource     
protected final  ClassLoader loader     
Constructor:
 public Resource(String resourceName,
    URL resource,
    ClassLoader loader) 
Method from org.apache.commons.discovery.Resource Summary:
getClassLoader,   getName,   getResource,   getResourceAsStream,   toArray,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.discovery.Resource Detail:
 public ClassLoader getClassLoader() 
    Get the value of loader.
 public String getName() 
    Get the value of resourceName.
 public URL getResource() 
    Get the value of URL.
 public InputStream getResourceAsStream() 
    Get the value of URL.
 public static Resource[] toArray(ResourceIterator iterator) 
 public String toString()