public class RelativePathResolver_impl extends java.lang.Object implements RelativePathResolver
RelativePathResolver.UIMA_DATAPATH_PROP| Constructor and Description |
|---|
RelativePathResolver_impl() |
RelativePathResolver_impl(java.lang.ClassLoader aClassLoader) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public RelativePathResolver_impl()
public RelativePathResolver_impl(java.lang.ClassLoader aClassLoader)
public java.lang.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(java.lang.String aPath)
throws java.net.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 pathjava.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)
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(java.lang.ClassLoader aClassLoader)
RelativePathResolversetPathResolverClassLoader in interface RelativePathResolveraClassLoader - 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()
Copyright © 2013. All Rights Reserved.