public class EntitiesToUnicode extends Object
Modifier and Type | Field and Description |
---|---|
private static Map<String,Character> |
MAP
This is a map that contains the names of entities and their unicode value.
|
Constructor and Description |
---|
EntitiesToUnicode() |
Modifier and Type | Method and Description |
---|---|
static char |
decodeEntity(String name)
Translates an entity to a unicode character.
|
static String |
decodeString(String s)
Translates a String with entities (&...;) to a String without entities,
replacing the entity with the right (unicode) character.
|
public EntitiesToUnicode()
public static char decodeEntity(String name)
name
- the name of the entitypublic static String decodeString(String s)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses