public class CharacterEntityParser extends Object
Constructor and Description |
---|
CharacterEntityParser(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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public CharacterEntityParser(Properties characterEntities)
characterEntities
- the entities used for the parserpublic CharacterEntityParser(HashMap characterEntities)
characterEntities
- the entities used for the parserpublic static CharacterEntityParser createXMLEntityParser()
public String encodeEntities(String value)
value
- the original stringCopyright © 2002–2017 Pentaho Corporation. All rights reserved.