|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.unidata.util.EscapeStrings
public class EscapeStrings
User: ndp Date: Jul 7, 2006 Time: 10:23:19 AM
Field Summary | |
---|---|
static String |
_allowableInOGC
|
static String |
_allowableInUrl
|
static String |
_allowableInUrlQuery
|
static String |
asciiAlphaNumeric
|
static String |
asciiNonAlphaNumeric
|
static String |
opendap_identifier_characters
|
static String |
opendap_identifier_special_characters
|
Constructor Summary | |
---|---|
EscapeStrings()
|
Method Summary | |
---|---|
static String |
backslashEscape(String x,
String reservedChars)
backslash escape a string |
static String |
backslashUnescape(String x)
backslash unescape a string |
static String |
escapeDAPIdentifier(String id)
Define the DEFINITIVE opendap identifier escape function. |
static String |
escapeOGC(String s)
Define the OGC Web Services escape function. |
static String |
escapeURL(String url)
Decompose a url and piecemeal encode all of its parts, including query and fragment |
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 |
mainOld(String[] args)
|
static String |
normalizeToXML(String s)
This method is used to normalize strings prior to their inclusion in XML documents. |
static String[] |
splitURL(String url)
Split a url into the base plus the query |
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. |
static String |
urlEncode(String s)
Define the DEFINITIVE URL escape function. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String asciiAlphaNumeric
public static String asciiNonAlphaNumeric
public static String _allowableInUrlQuery
public static String _allowableInUrl
public static String _allowableInOGC
public static String opendap_identifier_special_characters
public static String opendap_identifier_characters
Constructor Detail |
---|
public EscapeStrings()
Method Detail |
---|
public static String normalizeToXML(String s)
s
- The String to be normalized.
public static String[] splitURL(String url)
url
- The expression to unescape.
public static String escapeDAPIdentifier(String id)
id
- The identifier to modify.
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 urlEncode(String s)
s
- The string to modify.
public static String urlDecode(String s)
s
- The string to unescape.
public static String escapeURL(String url)
url
- the url to encodepublic static String unescapeURL(String url)
url
- the url to encodepublic static String escapeOGC(String s)
s
- The string to encode.
public static String unescapeOGC(String s)
s
- The string to unescape. b
public static String backslashEscape(String x, String reservedChars)
x
- escape thisreservedChars
- these chars get a backslash in front of them
public static String backslashUnescape(String x)
x
- unescape this
public static List<String> tokenizeEscapedName(String escapedName)
escapedName
- an escaped name
public static int indexOf(String escapedName, char c)
escapedName
- search in this stringc
- for this char but not \\char
public static void main(String[] args)
public static void mainOld(String[] args) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |