|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectxv.text.StringEscape
public class StringEscape
Various string escape methods.
Constructor Summary | |
---|---|
StringEscape()
|
Method Summary | |
---|---|
static void |
appendEscapedXML(Appendable dest,
CharSequence src)
Appends the given character sequence, escaped for output into XML. |
static void |
appendEscapedXMLAttribute(Appendable dest,
CharSequence src)
Appends the given character sequence, escaped for output into an XML attribute. |
static String |
escapeXML(CharSequence src)
Returns the given character sequence, escaped for output into XML. |
static String |
escapeXMLAttribute(CharSequence src)
Returns the given character sequence, escaped for output into an XML attribute. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringEscape()
Method Detail |
---|
public static void appendEscapedXMLAttribute(Appendable dest, CharSequence src) throws IOException
'<'
, '>'
, '&'
,
'"'
, and '\''
.
dest
- the Appendable
to append the escaped text tosrc
- the character sequence to use as the source
IOException
- if the given Appendable
raises onepublic static void appendEscapedXML(Appendable dest, CharSequence src) throws IOException
'<'
, '>'
, and '&'
.
dest
- the Appendable
to append the escaped text tosrc
- the character sequence to use as the source
IOException
- if the given Appendable
raises onepublic static String escapeXMLAttribute(CharSequence src)
'<'
, '>'
, '&'
,
'"'
, and '\''
.
src
- appendEscapedXMLAttribute(Appendable, CharSequence)
public static String escapeXML(CharSequence src)
'<'
, '>'
, and '&'
.
dest
- src
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |