public class URLnaming
extends java.lang.Object
Constructor and Description |
---|
URLnaming() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
canonicalizeWrite(java.lang.String location) |
static java.lang.String |
resolve(java.lang.String baseUri,
java.lang.String relativeUri)
This augments URI.resolve(), by also dealing with file: URIs.
|
static java.lang.String |
resolveFile(java.lang.String baseDir,
java.lang.String filepath) |
public static java.lang.String canonicalizeWrite(java.lang.String location)
public static java.lang.String resolve(java.lang.String baseUri, java.lang.String relativeUri)
For file: baseURLS: only relative 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
- relative URI, as a Stringpublic static java.lang.String resolveFile(java.lang.String baseDir, java.lang.String filepath)