| Modifier and Type | Field and Description |
|---|---|
| private final Map | codeToName
This is a mapping from a character code to a character name. |
| private final Map | nameToCode
This is a mapping from a character name to a character code. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | addCharacterEncoding(int
The character code that matches the character. code, String The name of the character. name)This will add a character encoding. |
| public Integer | |
| public Map | Returns: the Code2Name mapReturns an unmodifiable view of the code to name mapping. |
| public String | Returns: The name of the character, or ".notdef" if the bame doesn't exist.The character code. code)This will take a character code and get the name from the code. |
| codeToName | back to summary |
|---|---|
| private final Map<Integer, String> codeToName This is a mapping from a character code to a character name. | |
| nameToCode | back to summary |
|---|---|
| private final Map<String, Integer> nameToCode This is a mapping from a character name to a character code. | |
| Encoding | back to summary |
|---|---|
| public Encoding() | |
| addCharacterEncoding | back to summary |
|---|---|
| protected void addCharacterEncoding(int code, String name) This will add a character encoding.
| |
| getCode | back to summary |
|---|---|
| public Integer getCode(String name) This will get the character code for the name. | |
| getCodeToNameMap | back to summary |
|---|---|
| public Map Returns an unmodifiable view of the code to name mapping. | |
| getName | back to summary |
|---|---|
| public String getName(int code) This will take a character code and get the name from the code. This method will never return null.
| |