|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.milyn.resource.ClasspathResourceLocator
public class ClasspathResourceLocator
Classpath Resource Locator.
Loads resources from the classpath. The URI must have no scheme or authority components, and have a leading slash character ('/') on the path i.e. it must be relative to the root of the classpath.
| Constructor Summary | |
|---|---|
ClasspathResourceLocator()
|
|
| Method Summary | |
|---|---|
URI |
getBaseURI()
Get the base URI for the locator instance. |
InputStream |
getResource(String uri)
Get the stream specified by the 'uri' parameter. |
InputStream |
getResource(String configName,
String defaultUri)
Get the resource specified by the container 'config' value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClasspathResourceLocator()
| Method Detail |
|---|
public InputStream getResource(String configName,
String defaultUri)
throws IllegalArgumentException
ContainerResourceLocator
getResource in interface ContainerResourceLocatorconfigName - The container configuration entry name whose value specifies
the location of the resource.defaultUri - The default location for the resource.
IllegalArgumentException - Illegal argument. Check the cause exception for more
information.
public InputStream getResource(String uri)
throws IllegalArgumentException
ExternalResourceLocator
getResource in interface ExternalResourceLocatoruri - The location of the resource to be located.
IllegalArgumentException - Illegal argument. Check the cause exception for more
information.public URI getBaseURI()
ContainerResourceLocator
getBaseURI in interface ContainerResourceLocator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||