public interface RelativePathResolver
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
UIMA_DATAPATH_PROP |
Modifier and Type | Method and Description |
---|---|
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.
|
static final java.lang.String UIMA_DATAPATH_PROP
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 pathjava.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.Copyright © 2006–2014 The Apache Software Foundation. All rights reserved.