public interface RelativePathResolver
| Modifier and Type | Field and Description | 
|---|---|
| static String | UIMA_DATAPATH_PROP | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getDataPath()Deprecated. 
 Use  getDataPathElements()instead. | 
| 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. 
 Use  setDataPathElements(java.lang.String...)instead. | 
| void | setDataPathElements(File... aElements)Sets the data path elements used to resolve relative paths. | 
| void | setDataPathElements(String... aElements)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. | 
static final String UIMA_DATAPATH_PROP
@Deprecated String getDataPath()
getDataPathElements() instead.path.separator character (; on windows, : on
 UNIX). Elements of this path may be absolute or relative file paths.List<String> getDataPathElements()
@Deprecated void setDataPath(String aPath) throws MalformedURLException
setDataPathElements(java.lang.String...) instead.path.separator character (; on windows, : on
 UNIX). Elements of this path may be absolute or relative file paths.aPath - the data pathMalformedURLException - if a file path could not be converted to a URLvoid setDataPathElements(String... aElements) throws MalformedURLException
aElements - the data path elementsMalformedURLException - if a file path could not be converted to a URLvoid setDataPathElements(File... aElements) throws MalformedURLException
aElements - the data path elementsMalformedURLException - if a file path could not be converted to a URLURL resolveRelativePath(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(ClassLoader aClassLoader)
aClassLoader - the ClassLoader that should be used to resolve the resources.Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.