org.jfree.report.util
Class CharacterEntityParser
java.lang.Object
org.jfree.report.util.CharacterEntityParser
The character entity parser replaces all known occurrences of an entity in the format
&entityname;.
CharacterEntityParser(Properties characterEntities) - Creates a new CharacterEntityParser and initializes the parser with the given set of
entities.
|
static CharacterEntityParser | createXMLEntityParser() - create a new Character entity parser and initializes the parser with the entities
defined in the XML standard.
|
String | decodeEntities(String value) - Decode the string, all known entities are replaced by their resolved characters.
|
String | encodeEntities(String value) - Encode the given String, so that all known entites are encoded.
|
CharacterEntityParser
public CharacterEntityParser(Properties characterEntities)
Creates a new CharacterEntityParser and initializes the parser with the given set of
entities.
characterEntities
- the entities used for the parser
createXMLEntityParser
public static CharacterEntityParser createXMLEntityParser()
create a new Character entity parser and initializes the parser with the entities
defined in the XML standard.
- the CharacterEntityParser initialized with XML entities.
decodeEntities
public String decodeEntities(String value)
Decode the string, all known entities are replaced by their resolved characters.
value
- the string that should be decoded.
encodeEntities
public String encodeEntities(String value)
Encode the given String, so that all known entites are encoded. All characters
represented by these entites are now removed from the string.
value
- the original string