|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.tyenki.tree.ResourceLocator
public class ResourceLocator
Locates the resources (schemas and templates) required by this library.
The default resource locator looks for the resources in the following order: - file system (default is current) - resource on classpath
| Constructor Summary | |
|---|---|
ResourceLocator()
Creates a new default resource locator to the current directory. |
|
ResourceLocator(File root)
Creates a new resource locator using the specified directory to search for resources. |
|
| Method Summary | |
|---|---|
URL |
getResource(String name)
Returns the location of the resource with the specified name. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceLocator()
public ResourceLocator(File root)
root - The root of the resource directory.| Method Detail |
|---|
public URL getResource(String name)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||