|
||||||||||
| 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 | |
|---|---|
String |
getDirectory()
Returns the directory used to resolve the relative path, or null if relative path is not allowed. |
URL |
getResource(String name)
Finds the resource with the given name. |
InputStream |
getResourceAsStream(String name)
Returns an input stream for reading the specified resource. |
| Method Detail |
|---|
String getDirectory()
Note: if the returned directory is not null, it must end with '/'.
URL getResource(String name)
InputStream getResourceAsStream(String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||