Class EntitiesToUnicode
java.lang.Object
com.lowagie.text.xml.simpleparser.EntitiesToUnicode
This class contains entities that can be used in an entity tag.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic char
decodeEntity
(String name) Translates an entity to a unicode character.static String
Translates a String with entities (&...;) to a String without entities, replacing the entity with the right (unicode) character.getMap()
-
Field Details
-
map
This is a map that contains the names of entities and their unicode value.
-
-
Constructor Details
-
EntitiesToUnicode
public EntitiesToUnicode()
-
-
Method Details
-
getMap
-
decodeEntity
Translates an entity to a unicode character.- Parameters:
name
- the name of the entity- Returns:
- the corresponding unicode character
-
decodeString
Translates a String with entities (&...;) to a String without entities, replacing the entity with the right (unicode) character.- Parameters:
s
- string to be decoded- Returns:
- a ddecoded string
-