|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.discovery.Resource
public class Resource
'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 java.lang.ClassLoader |
loader
|
protected java.lang.String |
name
|
protected java.net.URL |
resource
|
Constructor Summary | |
---|---|
Resource(java.lang.String resourceName,
java.net.URL resource,
java.lang.ClassLoader loader)
|
Method Summary | |
---|---|
java.lang.ClassLoader |
getClassLoader()
Get the value of loader. |
java.lang.String |
getName()
Get the value of resourceName. |
java.net.URL |
getResource()
Get the value of URL. |
java.io.InputStream |
getResourceAsStream()
Get the value of URL. |
static Resource[] |
toArray(ResourceIterator iterator)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final java.lang.String name
protected final java.net.URL resource
protected final java.lang.ClassLoader loader
Constructor Detail |
---|
public Resource(java.lang.String resourceName, java.net.URL resource, java.lang.ClassLoader loader)
Method Detail |
---|
public java.lang.String getName()
public java.net.URL getResource()
public java.io.InputStream getResourceAsStream()
public java.lang.ClassLoader getClassLoader()
public java.lang.String toString()
toString
in class java.lang.Object
public static Resource[] toArray(ResourceIterator iterator)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |