public static class HTML.HtmlCharacterEntityReferences
extends java.lang.Object
| Constructor and Description |
|---|
HtmlCharacterEntityReferences()
Returns a new set of character entity references reflecting the HTML 4.0 character set.
|
| Modifier and Type | Method and Description |
|---|---|
char |
convertToCharacter(java.lang.String entityReference)
Return the char mapped to the given entityReference or -1.
|
java.lang.String |
convertToReference(char character)
Return the reference mapped to the given character or
null. |
int |
getSupportedReferenceCount()
Return the number of supported entity references.
|
boolean |
isMappedToReference(char character)
Return true if the given character is mapped to a supported entity reference.
|
public HtmlCharacterEntityReferences()
public int getSupportedReferenceCount()
public boolean isMappedToReference(char character)
character - The given characterpublic java.lang.String convertToReference(char character)
null.character - The given characternullpublic char convertToCharacter(java.lang.String entityReference)
entityReference - The given entityReferenceGuillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly