org.pentaho.reporting.libraries.xmlns.writer
public class CharacterEntityParser extends Object
Constructor Summary | |
---|---|
CharacterEntityParser(Properties characterEntities)
Creates a new CharacterEntityParser and initializes the parser with the
given set of entities.
| |
CharacterEntityParser(HashMap characterEntities)
Creates a new CharacterEntityParser and initializes the parser with the
given set of entities.
|
Method Summary | |
---|---|
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. |
Parameters: characterEntities the entities used for the parser
Parameters: characterEntities the entities used for the parser
Returns: the CharacterEntityParser initialized with XML entities.
Parameters: value the string that should be decoded.
Returns: the decoded string.
Parameters: value the original string
Returns: the encoded string.