public class EscapeTextUtility extends Object
Modifier and Type | Method and Description |
---|---|
static String |
toEscaped(String aUnEscaped,
String[][] aEscapeMatrix)
Escapes a text using the provided escape matrix which must be a two
dimensional array with two elements per line and where the element at
position 0 (of a line) represents the character and the element at
position 1 (of a line) the escaped character.
|
static String |
toUnEscaped(String aEscaped,
String[][] aEscapeMatrix)
Unescapes a text using the provided escape matrix which must be a two
dimensional array with two elements per line and where the element at
position 0 (of a line) represents the character and the element at
position 1 (of a line) the escaped character.
|
public static String toEscaped(String aUnEscaped, String[][] aEscapeMatrix)
aUnEscaped
- The text to be escaped.aEscapeMatrix
- The matrix to be used for escaping.public static String toUnEscaped(String aEscaped, String[][] aEscapeMatrix)
aEscaped
- The text to be unescaped.aEscapeMatrix
- The matrix to be used for unescaping.Copyright © 2015. All rights reserved.