|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.brics.xsugar.xml.Escaping
public class Escaping
Methods for escaping/unescaping special XML chars.
Method Summary | |
---|---|
static dk.brics.automaton.Automaton |
escape(dk.brics.automaton.Automaton a)
Escapes ", <, >, and & in the given automaton. |
static String |
escape(String s)
Escapes ", <, >, and & in the given string. |
static String |
unescape(String s)
Unescapes ", <, >, &, and character references in the given string. |
static String |
unescape(String s,
int i,
int j)
Unescapes a single ", <, >, &, or character reference. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static dk.brics.automaton.Automaton escape(dk.brics.automaton.Automaton a)
a
- input automaton
public static String escape(String s)
s
- input string
public static String unescape(String s)
s
- input string
public static String unescape(String s, int i, int j)
s
- input stringi
- start indexj
- end index (exclusive)
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |