|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.millscript.tools.CharacterEntity
public class CharacterEntity
This class implements HTML character entity encoding.
| Constructor Summary | |
|---|---|
CharacterEntity()
Constructs a new CharacterEntity, with only the mandatory
HTML entities defined. |
|
| Method Summary | |
|---|---|
void |
addEntity(java.lang.String name,
java.lang.Character ch)
Makes the specified entity available for encoding. |
java.lang.Character |
getCharacterFor(java.lang.String entityName)
Returns the Unicode character for the specified entity name. |
java.lang.String |
getEntityFor(char ch)
Returns the entity for the specified character. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CharacterEntity()
CharacterEntity, with only the mandatory
HTML entities defined.
| Method Detail |
|---|
public void addEntity(java.lang.String name,
java.lang.Character ch)
name - the entity namech - the Unicode character the entity representspublic java.lang.String getEntityFor(char ch)
ch - the character to entity encode
public java.lang.Character getCharacterFor(java.lang.String entityName)
entityName - the entity name to get a character for
null
if there is no mapping
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||