public class EscapeStrings extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
opendap_identifier_characters |
| Constructor and Description |
|---|
EscapeStrings() |
| Modifier and Type | Method and Description |
|---|---|
static String |
backslashEscape(String x,
String reservedChars)
backslash escape a string
|
static String |
backslashUnescape(String x)
backslash unescape a string
|
static String |
escapeDAPIdentifier(String s)
Define the DAP escape identifier function.
|
static String |
escapeOGC(String s)
Define the OGC Web Services escape function.
|
static String |
escapeURL(String url) |
static String |
escapeURLQuery(String ce)
Define the DEFINITIVE URL constraint expression escape function.
|
static int |
indexOf(String escapedName,
char c)
Find first occurence of char c in escapedName, excluding escaped c.
|
static void |
main(String[] args) |
static void |
main2(String[] args) |
static void |
mainOld(String[] args) |
static String |
normalizeToXML(String s) |
static void |
testOGC() |
static List<String> |
tokenizeEscapedName(String escapedName)
Tokenize an escaped name using "." as delimiter, skipping "\."
|
static String |
unescapeDAPIdentifier(String id)
Define the DEFINITIVE opendap identifier unescape function.
|
static String |
unescapeOGC(String s)
Define the OGC unescape function.
|
static String |
unescapeURL(String url)
Decode all of the parts of the url including query and fragment
|
static String |
unescapeURLQuery(String ce)
Define the DEFINITIVE URL constraint expression unescape function.
|
static String |
urlDecode(String s)
Define the DEFINITIVE URL unescape function.
|
public static String opendap_identifier_characters
public static String unescapeDAPIdentifier(String id)
id - The identifier to unescape.public static String escapeURLQuery(String ce)
ce - The expression to modify.public static String unescapeURLQuery(String ce)
ce - The expression to unescape.public static String urlDecode(String s)
s - The string to unescape.public static String unescapeURL(String url)
url - the url to encodepublic static String escapeDAPIdentifier(String s)
s - The string to encode.public static String escapeOGC(String s)
s - The string to encode.public static void testOGC()
public static String unescapeOGC(String s)
s - The string to unescape. bpublic static String backslashEscape(String x, String reservedChars)
x - escape thisreservedChars - these chars get a backslash in front of thempublic static String backslashUnescape(String x)
x - unescape thispublic static List<String> tokenizeEscapedName(String escapedName)
escapedName - an escaped namepublic static int indexOf(String escapedName, char c)
escapedName - search in this stringc - for this char but not \\chapublic static void main2(String[] args)
public static void main(String[] args)
Copyright © 1999-2012 UCAR/Unidata. All Rights Reserved.