|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.resource.impl.RelativePathResolver_impl
public class RelativePathResolver_impl
Reference implementation of RelativePathResolver
.
Field Summary |
---|
Fields inherited from interface org.apache.uima.resource.RelativePathResolver |
---|
UIMA_DATAPATH_PROP |
Constructor Summary | |
---|---|
RelativePathResolver_impl()
|
|
RelativePathResolver_impl(java.lang.ClassLoader aClassLoader)
|
Method Summary | |
---|---|
protected boolean |
fileExistsAtUrl(java.net.URL aUrl)
Utility method that checks to see if a file exists at the specified URL. |
protected java.net.URL[] |
getBaseUrls()
Gets the base URLs that were parsed from the data path. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RelativePathResolver_impl()
public RelativePathResolver_impl(java.lang.ClassLoader aClassLoader)
Method Detail |
---|
public java.lang.String getDataPath()
RelativePathResolver
path.separator
character (; on windows, : on
UNIX). Elements of this path may be absolute or relative file paths.
getDataPath
in interface RelativePathResolver
RelativePathResolver.getDataPath()
public void setDataPath(java.lang.String aPath) throws java.net.MalformedURLException
RelativePathResolver
path.separator
character (; on windows, : on
UNIX). Elements of this path may be absolute or relative file paths.
setDataPath
in interface RelativePathResolver
aPath
- the data path
java.net.MalformedURLException
- if a file path could not be converted to a URLRelativePathResolver.setDataPath(java.lang.String)
public java.net.URL resolveRelativePath(java.net.URL aRelativeUrl)
RelativePathResolver
null
is returned.
resolveRelativePath
in interface RelativePathResolver
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.RelativePathResolver.resolveRelativePath(java.net.URL)
public void setPathResolverClassLoader(java.lang.ClassLoader aClassLoader)
RelativePathResolver
setPathResolverClassLoader
in interface RelativePathResolver
aClassLoader
- the ClassLoader that should be used to resolve the resources.RelativePathResolver.setPathResolverClassLoader(java.lang.ClassLoader)
protected boolean fileExistsAtUrl(java.net.URL aUrl)
protected java.net.URL[] getBaseUrls()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |