public class HTMLCharacterEntities extends Object
| Constructor and Description |
|---|
HTMLCharacterEntities() |
| Modifier and Type | Method and Description |
|---|---|
void |
ensureInitialization(boolean includeSpecialChars)
Ensures the lookup table is initialized.
|
String |
getName(char value)
Gets the entity name for the given character.
|
int |
lookupName(String name)
Gets the character for a given entity name (e.g.
|
int |
lookupReference(String ref)
Gets the character for a given character entity reference (e.g.
|
public void ensureInitialization(boolean includeSpecialChars)
includeSpecialChars - true if XML-pre-defined entities should be
included in the list of supported entities.public int lookupReference(String ref)
ref - the reference to lookup.public int lookupName(String name)
name - the name to lookup.public String getName(char value)
value - the character to lookup.Copyright © 2021. All rights reserved.