|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Locator
A locator that is able to locate a resource.
Locators.getDefault()
Method Summary | |
---|---|
java.lang.String |
getDirectory()
Returns the directory used to resolve the relative path, or null if relative path is not allowed. |
java.net.URL |
getResource(java.lang.String name)
Finds the resource with the given name. |
java.io.InputStream |
getResourceAsStream(java.lang.String name)
Returns an input stream for reading the specified resource. |
Method Detail |
---|
java.lang.String getDirectory()
Note: if the returned directory is not null, it must end with '/'.
java.net.URL getResource(java.lang.String name)
java.io.InputStream getResourceAsStream(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |