public class SimpleStringEscaper extends Object
String escaping, compared to
StringEscaper (which is actually more concerned with parsing words
from a line).
Only CR (ASCII 13), LF (ASCII 10), NUL (ASCII 0), and backslash (ASCII 92) are escaped in this approach.
| Constructor and Description |
|---|
SimpleStringEscaper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
escapeString(String string)
Escapes the given string.
|
static String |
unescapeString(String string)
Unescapes the given string, reversing the effects of
escapeString(String). |
public static String escapeString(String string)
string - The string to escapepublic static String unescapeString(String string)
escapeString(String).string - The string to unescapeCopyright © 2026. All rights reserved.