public class EntitiesToUnicode extends Object
| Modifier and Type | Field and Description |
|---|---|
static HashMap |
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 static final HashMap map
public static char decodeEntity(String name)
name - the name of the entityCopyright © 2018. All rights reserved.