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()
RelativePathResolver
path.separator
character (; on windows, : on
UNIX). Elements of this path may be absolute or relative file paths.getDataPath
in interface RelativePathResolver
public List<String> getDataPathElements()
RelativePathResolver
getDataPathElements
in interface RelativePathResolver
public void setDataPathElements(File... aPaths) throws MalformedURLException
RelativePathResolver
setDataPathElements
in interface RelativePathResolver
aPaths
- the data path elementsMalformedURLException
- if a file path could not be converted to a URLpublic void setDataPathElements(String... aPaths) throws MalformedURLException
RelativePathResolver
setDataPathElements
in interface RelativePathResolver
aPaths
- the data path elementsMalformedURLException
- if a file path could not be converted to a URL@Deprecated public void setDataPath(String aPath) throws 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 pathMalformedURLException
- if a file path could not be converted to a URLpublic URL resolveRelativePath(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.public void setPathResolverClassLoader(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(URL aUrl)
protected URL[] getBaseUrls()
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.