public class RelativePathResolver_impl extends Object implements RelativePathResolver
RelativePathResolver.UIMA_DATAPATH_PROP| Constructor and Description |
|---|
RelativePathResolver_impl() |
RelativePathResolver_impl(ClassLoader aClassLoader) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
fileExistsAtUrl(URL aUrl) |
protected URL[] |
getBaseUrls() |
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.
|
public RelativePathResolver_impl()
public RelativePathResolver_impl(ClassLoader aClassLoader)
public String getDataPath()
RelativePathResolverpath.separator character (; on windows, : on
UNIX). Elements of this path may be absolute or relative file paths.getDataPath in interface RelativePathResolverRelativePathResolver.getDataPath()public void setDataPath(String aPath) throws MalformedURLException
RelativePathResolverpath.separator character (; on windows, : on
UNIX). Elements of this path may be absolute or relative file paths.setDataPath in interface RelativePathResolveraPath - the data pathMalformedURLException - if a file path could not be converted to a URLRelativePathResolver.setDataPath(java.lang.String)public URL resolveRelativePath(URL aRelativeUrl)
RelativePathResolvernull is returned.resolveRelativePath in interface RelativePathResolveraRelativeUrl - 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(ClassLoader aClassLoader)
RelativePathResolversetPathResolverClassLoader in interface RelativePathResolveraClassLoader - the ClassLoader that should be used to resolve the resources.RelativePathResolver.setPathResolverClassLoader(java.lang.ClassLoader)protected boolean fileExistsAtUrl(URL aUrl)
protected URL[] getBaseUrls()
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.