|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectXmlEntities
public class XmlEntities
A collection of functions for dealing with XML entities.
| Constructor Summary | |
|---|---|
XmlEntities()
|
|
| Method Summary | |
|---|---|
static String |
decode(String s)
Replaces XML entities (& etc.) by the corresponding characters. |
static String |
encode(String s)
Replaces special characters (<, >, quotes, and &) with the XML entities. |
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlEntities()
| Method Detail |
|---|
public static String encode(String s)
s - a string
public static String decode(String s)
throws XmlDecodingException
The implementation of this method was taken from Steven Brandt, "RegexRecipes", http://www.javaregex.com/RegexRecipesV1.pdf.
s - a string
XmlDecodingException - if the string contains an undefined
character entity.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||