public class URLnaming extends Object
Constructor and Description |
---|
URLnaming() |
Modifier and Type | Method and Description |
---|---|
static String |
canonicalizeWrite(String location) |
static String |
resolve(String baseUri,
String relativeUri)
This augments URI.resolve(), by also dealing with file: URIs.
|
static String |
resolveFile(String baseDir,
String filepath) |
public static String resolve(String baseUri, String relativeUri)
For file: baseURLS: only reletive URLS not starting with / are supported. This is apparently different from the behavior of URI.resolve(), so may be trouble, but it allows NcML absolute location to be specified without the file: prefix.
Example :base: file://my/guide/collections/designfaq.ncml ref: sub/my.nc resolved: file://my/guide/collections/sub/my.nc
baseUri
- base URI as a StrngrelativeUri
- reletive URI, as a String