|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evanmclean.evlib.escape.EscXml
public final class EscXml
Escapes character escaping suitable for XML output.
Field Summary | |
---|---|
static String |
CDATA_END
The end of an XML CDATA element: " ]]> " |
static String |
CDATA_START
The start of an XML CDATA element: " <![CDATA[ " |
Method Summary | |
---|---|
String |
attr(Object obj)
Performs escaping for an XML attribute. |
String |
cdata(Object obj)
Performs escaping for text inside an XML CDATA element. |
String |
comment(Object obj)
Performs escaping for text inside an XML comment. |
String |
text(Object obj)
Performs escaping for text inside an XML text element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CDATA_START
<![CDATA[
"
public static final String CDATA_END
]]>
"
Method Detail |
---|
public String attr(Object obj)
obj
-
null
if obj
was null
.public String cdata(Object obj)
obj
-
null
if obj
was null
.public String comment(Object obj)
obj
-
null
if obj
was null
.public String text(Object obj)
obj
-
null
if obj
was null
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |