public class IlvDefaultDataPathResolver extends Object implements IlvMapDataPathResolver
IlvMapDataPathResolver searches
for a file in a directory.IlvMapDataPathResolver,
IlvMapDataPathManager| Constructor and Description |
|---|
IlvDefaultDataPathResolver(String basename)
Creates a new data path resolver to find files or URLs in the specified
base name.
|
| Modifier and Type | Method and Description |
|---|---|
String |
resolvePath(String filename)
Resolves the specified relative path name.
|
URL |
resolveURL(String urlname)
Resolves the specified relative URL name.
|
public IlvDefaultDataPathResolver(String basename)
basename - The absolute path of the directory, or the URL base name in which to
search for files or URLs.public String resolvePath(String filename)
resolvePath in interface IlvMapDataPathResolverfilename - The relative file name to resolve.null if this resolver
cannot resolve the path.public URL resolveURL(String urlname)
basename
of this IlvDefaultDataPathResolver as a prefix.
For example, given an IlvDefaultDataPathResolver
whose basename is http://www.foo.com,
the urlname "bar" will be resolved as
http://www.foo.com/bar.resolveURL in interface IlvMapDataPathResolverurlname - The relative URL name to resolve.null if this resolver
cannot resolve the path.© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.