Class CharacterEntityParser
java.lang.Object
org.pentaho.reporting.libraries.xmlns.writer.CharacterEntityParser
The character entity parser replaces all known occurrences of an entity in
the format &entityname;.
- Author:
- Thomas Morgner
-
Constructor Summary
ConstructorsConstructorDescriptionCharacterEntityParser
(HashMap characterEntities) Creates a new CharacterEntityParser and initializes the parser with the given set of entities.CharacterEntityParser
(Properties characterEntities) Creates a new CharacterEntityParser and initializes the parser with the given set of entities. -
Method Summary
Modifier and TypeMethodDescriptionstatic CharacterEntityParser
create a new Character entity parser and initializes the parser with the entities defined in the XML standard.decodeEntities
(String value) Decode the string, all known entities are replaced by their resolved characters.encodeEntities
(String value) Encode the given String, so that all known entites are encoded.
-
Constructor Details
-
CharacterEntityParser
Creates a new CharacterEntityParser and initializes the parser with the given set of entities.- Parameters:
characterEntities
- the entities used for the parser
-
CharacterEntityParser
Creates a new CharacterEntityParser and initializes the parser with the given set of entities.- Parameters:
characterEntities
- the entities used for the parser
-
-
Method Details
-
createXMLEntityParser
create a new Character entity parser and initializes the parser with the entities defined in the XML standard.- Returns:
- the CharacterEntityParser initialized with XML entities.
-
encodeEntities
-
decodeEntities
-