|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.cc.framework.util.parser.EntityMapper
Utility class to map entities to character codes
| Field Summary | |
private static java.util.Map |
ENTITIES_BY_CODE
HTML Entities accessible by character code Map<Character, String> |
private static java.util.Map |
ENTITIES_BY_NAME
HTML Entities accessible by entity name Map<String, Character> |
| Constructor Summary | |
EntityMapper()
|
|
| Method Summary | |
java.lang.String |
getByCode(char code)
Maps a character to the entity |
char |
getByName(java.lang.String entity)
Maps an entity to the corresponding entity |
private static void |
register(java.lang.String entity,
int code)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static java.util.Map ENTITIES_BY_NAME
private static java.util.Map ENTITIES_BY_CODE
| Constructor Detail |
public EntityMapper()
| Method Detail |
private static void register(java.lang.String entity,
int code)
public java.lang.String getByCode(char code)
code - the character code to map
nullpublic char getByName(java.lang.String entity)
entity - the entity to map
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||