|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RelativePathResolver
Used by the resource manager to resolve relative URLs to absolute URLs.
| Field Summary | |
|---|---|
static String |
UIMA_DATAPATH_PROP
|
| Method Summary | |
|---|---|
String |
getDataPath()
Gets the data path used to resolve relative paths. |
URL |
resolveRelativePath(URL aRelativeUrl)
Resolves a relative URL to an absolute URL. |
void |
setDataPath(String aPath)
Sets the data path used to resolve relative paths. |
void |
setPathResolverClassLoader(ClassLoader aClassLoader)
Sets the ClassLoader that should be used to resolve the resources. |
| Field Detail |
|---|
static final String UIMA_DATAPATH_PROP
| Method Detail |
|---|
String getDataPath()
path.separator character (; on windows, : on
UNIX). Elements of this path may be absolute or relative file paths.
void setDataPath(String aPath)
throws MalformedURLException
path.separator character (; on windows, : on
UNIX). Elements of this path may be absolute or relative file paths.
aPath - the data path
MalformedURLException - if a file path could not be converted to a URLURL resolveRelativePath(URL aRelativeUrl)
null is returned.
aRelativeUrl - the relative URL to be resolved (if an absolute URL is specified, it will be returned
unmodified if a file actually exists at the URL; otherwise null will be
returned).
null it none could be found.void setPathResolverClassLoader(ClassLoader aClassLoader)
aClassLoader - the ClassLoader that should be used to resolve the resources.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||