|
||||||||||
| 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 java.lang.String |
UIMA_DATAPATH_PROP
|
| Method Summary | |
|---|---|
java.lang.String |
getDataPath()
Gets the data path used to resolve relative paths. |
java.net.URL |
resolveRelativePath(java.net.URL aRelativeUrl)
Resolves a relative URL to an absolute URL. |
void |
setDataPath(java.lang.String aPath)
Sets the data path used to resolve relative paths. |
void |
setPathResolverClassLoader(java.lang.ClassLoader aClassLoader)
Sets the ClassLoader that should be used to resolve the resources. |
| Field Detail |
|---|
static final java.lang.String UIMA_DATAPATH_PROP
| Method Detail |
|---|
java.lang.String getDataPath()
path.separator character (; on windows, : on
UNIX). Elements of this path may be absolute or relative file paths.
void setDataPath(java.lang.String aPath)
throws java.net.MalformedURLException
path.separator character (; on windows, : on
UNIX). Elements of this path may be absolute or relative file paths.
aPath - the data path
java.net.MalformedURLException - if a file path could not be converted to a URLjava.net.URL resolveRelativePath(java.net.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(java.lang.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 | |||||||||