A complete description of the HTML 4.0 character set can be found at https://www.w3.org/TR/html4/charset.html.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final char | |
| private final String[] | |
| pack-priv static final String | |
| private final Map | |
| pack-priv static final String | |
| private static final String | |
| pack-priv static final char | |
| pack-priv static final char |
| Access | Constructor and Description |
|---|---|
| public | HtmlCharacterEntityReferences()
Returns a new set of character entity references reflecting the HTML 4.0 character set. |
| Modifier and Type | Method and Description |
|---|---|
| public char | convertToCharacter(String entityReference)
Return the char mapped to the given entityReference or -1. |
| public String | convertToReference(char character)
Return the reference mapped to the given character, or |
| public String | convertToReference(char character, String encoding)
Return the reference mapped to the given character, or |
| public int | |
| public boolean | isMappedToReference(char character)
Return true if the given character is mapped to a supported entity reference. |
| public boolean | isMappedToReference(char character, String encoding)
Return true if the given character is mapped to a supported entity reference. |
| CHAR_NULL | back to summary |
|---|---|
| pack-priv static final char CHAR_NULL | |
| characterToEntityReferenceMap | back to summary |
|---|---|
| private final String[] characterToEntityReferenceMap | |
| DECIMAL_REFERENCE_START | back to summary |
|---|---|
| pack-priv static final String DECIMAL_REFERENCE_START | |
| entityReferenceToCharacterMap | back to summary |
|---|---|
| private final Map<String, Character> entityReferenceToCharacterMap | |
| HEX_REFERENCE_START | back to summary |
|---|---|
| pack-priv static final String HEX_REFERENCE_START | |
| PROPERTIES_FILE | back to summary |
|---|---|
| private static final String PROPERTIES_FILE | |
| REFERENCE_END | back to summary |
|---|---|
| pack-priv static final char REFERENCE_END | |
| REFERENCE_START | back to summary |
|---|---|
| pack-priv static final char REFERENCE_START | |
| HtmlCharacterEntityReferences | back to summary |
|---|---|
| public HtmlCharacterEntityReferences() Returns a new set of character entity references reflecting the HTML 4.0 character set. | |
| convertToCharacter | back to summary |
|---|---|
| public char convertToCharacter(String entityReference) Return the char mapped to the given entityReference or -1. | |
| convertToReference | back to summary |
|---|---|
| public String convertToReference(char character) Return the reference mapped to the given character, or
| |
| convertToReference | back to summary |
|---|---|
| public String convertToReference(char character, String encoding) Return the reference mapped to the given character, or
| |
| getSupportedReferenceCount | back to summary |
|---|---|
| public int getSupportedReferenceCount() Return the number of supported entity references. | |
| isMappedToReference | back to summary |
|---|---|
| public boolean isMappedToReference(char character) Return true if the given character is mapped to a supported entity reference. | |
| isMappedToReference | back to summary |
|---|---|
| public boolean isMappedToReference(char character, String encoding) Return true if the given character is mapped to a supported entity reference. | |