public class EntityMap extends Object
| Modifier and Type | Field and Description | 
|---|---|
| protected static String[] | entityKeys | 
| protected static String[] | entityReplacements | 
| protected static HashMap<String,String> | map | 
| protected static List<Pattern> | patterns | 
| Constructor and Description | 
|---|
| EntityMap() | 
| Modifier and Type | Method and Description | 
|---|---|
| static String | get(String key)Returns tne Java equivalent of an entity or a named character reference. | 
| protected static String | getNextEntity(String source,
             int regionStart)Search a string for the next occurrence of an entity. | 
| static String | replaceAll(String source)Replaces all entities and character references in a specified string. | 
protected static String[] entityKeys
protected static final String[] entityReplacements
public static String get(String key)
key - the entity or character reference.protected static String getNextEntity(String source, int regionStart)
source - String to search.regionStart - Position in the string at which to start searching.null if no entity could be matched.public static String replaceAll(String source)
source - the input string.