public class EscapeStrings extends Object
| Constructor and Description |
|---|
EscapeStrings() |
| Modifier and Type | Method and Description |
|---|---|
static String |
backslashEscape(String x,
String reservedChars)
backslash escape a string
|
static String |
backslashEscapeCDMString(String s,
String toescape)
Given a CDM string, insert backslashes before
|
static String |
backslashUnescape(String x)
backslash unescape a string
|
static String |
escapeOGC(String s)
The OGC Web Services escape function.
|
static String |
escapeString(String in,
String allowable)
Public by accident, do not use directly
|
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 List<String> |
tokenizeEscapedName(String escapedName)
Tokenize an escaped name using "." as delimiter, skipping "\."
|
static String |
unescapeString(String in)
Public by accident, do not use directly
|
static String |
unescapeURLQuery(String ce)
Define the DEFINITIVE URL constraint expression unescape function.
|
static String |
urlDecode(String s)
A cover for URLDecoder.decode(): Decodes a
application/x-www-form-urlencoded string. |
public static String backslashEscape(String x, String reservedChars)
x - escape this; may be nullreservedChars - 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 String backslashEscapeCDMString(String s, String toescape)
public static int indexOf(String escapedName, char c)
escapedName - search in this stringc - for this char but not \\cha@Nullable public static String escapeOGC(String s)
s - The string to encode.@Nullable public static String escapeURLQuery(String ce)
ce - The expression to modify.@Nullable public static String escapeString(String in, String allowable)
@Nullable public static String unescapeURLQuery(String ce)
ce - The expression to unescape.@Nullable public static String unescapeString(String in)