Package ucar.nc2.dods
Class EscapeStringsDap
- java.lang.Object
-
- ucar.nc2.dods.EscapeStringsDap
-
public class EscapeStringsDap extends Object
Escape utilities for DAP
-
-
Constructor Summary
Constructors Constructor Description EscapeStringsDap()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringbackslashEscapeDapString(String s)Given a DAP (attribute) string, insert backslashes before '"' and '/' characters.static StringbackslashToDAP(String bs)Given a backslash escaped name, convert to a DAP escaped namestatic StringescapeDAPIdentifier(String s)Define the DAP escape identifier function.static StringunescapeDAPIdentifier(String id)Define the DEFINITIVE opendap identifier unescape function.
-
-
-
Method Detail
-
backslashEscapeDapString
public static String backslashEscapeDapString(String s)
Given a DAP (attribute) string, insert backslashes before '"' and '/' characters. This code also escapes control characters, although the spec does not call for it; make that code conditional.
-
backslashToDAP
public static String backslashToDAP(String bs)
Given a backslash escaped name, convert to a DAP escaped name- Parameters:
bs- the string to DAP encode; may have backslash escapes- Returns:
- escaped string
-
unescapeDAPIdentifier
public static String unescapeDAPIdentifier(String id)
Define the DEFINITIVE opendap identifier unescape function.- Parameters:
id- The identifier to unescape.- Returns:
- The unescaped identifier.
-
-