|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.util.XMLEntityCodec
public final class XMLEntityCodec
This encoder contains methods that convert characters to Character entities as
defined by http://www.w3.org/TR/REC-html40/sgml/entities.html. More precisely it
combines the functionality of StringEscapeUtils.escapeXml(String) and
StringEscapeUtils.escapeHtml(String) into a single pass.
| Constructor Summary | |
|---|---|
protected |
XMLEntityCodec()
|
| Method Summary | |
|---|---|
static String |
decodeString(String str)
|
static String |
encodeString(String str)
|
static String |
entityName(int value)
Returns the name of the entity identified by the specified value. |
static int |
entityValue(String name)
Returns the value of the entity identified by the specified name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected XMLEntityCodec()
| Method Detail |
|---|
public static String encodeString(String str)
public static String decodeString(String str)
public static String entityName(int value)
Returns the name of the entity identified by the specified value.
value - the value to locate
public static int entityValue(String name)
Returns the value of the entity identified by the specified name.
name - the name to locate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||