public class URLnaming
extends java.lang.Object
Constructor and Description |
---|
URLnaming() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
canonicalizeRead(java.lang.String location) |
static java.lang.String |
canonicalizeWrite(java.lang.String location) |
static java.lang.String |
escapePathForURL(java.lang.String path) |
static java.lang.String |
escapeQuery(java.lang.String urlString)
Deprecated.
|
static void |
main(java.lang.String[] args) |
static void |
main1() |
static void |
main2() |
static void |
main3() |
static void |
main4() |
static void |
main5() |
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) |
@Deprecated public static java.lang.String escapeQuery(java.lang.String urlString)
public static java.lang.String canonicalizeWrite(java.lang.String location)
public static java.lang.String escapePathForURL(java.lang.String path)
public static java.lang.String resolve(java.lang.String baseUri, java.lang.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 Stringpublic static java.lang.String canonicalizeRead(java.lang.String location)
public static java.lang.String resolveFile(java.lang.String baseDir, java.lang.String filepath)
public static void main1()
public static void main2()
public static void main3()
public static void main4()
public static void main5() throws java.net.URISyntaxException
java.net.URISyntaxException
public static void main(java.lang.String[] args) throws java.net.URISyntaxException
java.net.URISyntaxException