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()Deprecated.  | 
| List<String> | getDataPathElements()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)Deprecated.  | 
| void | setDataPathElements(File... aPaths)Sets the data path elements used to resolve relative paths. | 
| void | setDataPathElements(String... aPaths)Sets the data path elements 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)
@Deprecated public String getDataPath()
RelativePathResolverpath.separator character (; on windows, : on
 UNIX). Elements of this path may be absolute or relative file paths.getDataPath in interface RelativePathResolverpublic List<String> getDataPathElements()
RelativePathResolvergetDataPathElements in interface RelativePathResolverpublic void setDataPathElements(File... aPaths) throws MalformedURLException
RelativePathResolversetDataPathElements in interface RelativePathResolveraPaths - the data path elementsMalformedURLException - if a file path could not be converted to a URLpublic void setDataPathElements(String... aPaths) throws MalformedURLException
RelativePathResolversetDataPathElements in interface RelativePathResolveraPaths - the data path elementsMalformedURLException - if a file path could not be converted to a URL@Deprecated 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 URLpublic 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.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–2022 The Apache Software Foundation. All rights reserved.