|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.SIRAPRISE.client.EntityRefs
public class EntityRefs
Class holding a utility method to replace the <>'"& tokens with XML entity refs in XML output
Method Summary | |
---|---|
static java.lang.String |
fromHtml(java.lang.String string,
Version htmlVersion)
Processes the input string and replaces all appearances of entity references that are valid under the htmlVersion specified with their actual codepoint value. |
static java.lang.String |
fromXHtml(java.lang.String string,
Version xhtmlVersion)
Processes the input string and replaces all appearances of entity references that are valid under the htmlVersion specified with their actual codepoint value. |
static java.lang.String |
toXML(java.lang.String string)
Gets the XML version of the input string, i.e. with all <>'"& characters replaced by their appropriate entity references |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String fromHtml(java.lang.String string, Version htmlVersion)
string
- The input string to be "sanitized" from nnnn and hhhh appearances, as well as any named entity refs valid in the given html Version.htmlVersion
- The version indicating which entity refs table to use
public static java.lang.String fromXHtml(java.lang.String string, Version xhtmlVersion)
string
- The input string to be "sanitized" from nnnn and hhhh appearances, as well as any named entity refs valid in the given html Version.xhtmlVersion
- The version indicating which entity refs table to use
public static java.lang.String toXML(java.lang.String string)
string
- the string to be rendered to valid xml
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |