| Modifier and Type | Field and Description |
|---|---|
| protected static final int | |
| protected static final int | |
| protected final Map | codeToName
code-to-name map. |
| protected final Map | inverted
name-to-code map. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| public boolean | |
| public boolean | Returns: if the encoding has a mapping for the given code valuecharacter code code)Determines if the encoding has a mapping for the given code value. |
| public Map | Returns: the code -> name mapReturns an unmodifiable view of the code -> name mapping. |
| public abstract String | |
| public static Encoding | Returns: The encoding that matches the name.The name of the encoding to get. name)This will get an encoding by name. |
| public String | Returns: PostScript glyph namecharacter code code)This will take a character code and get the name from the code. |
| public Map | Returns: the name -> code mapReturns an unmodifiable view of the name -> code mapping. |
| protected void |
| CHAR_CODE | back to summary |
|---|---|
| protected static final int CHAR_CODE | |
| CHAR_NAME | back to summary |
|---|---|
| protected static final int CHAR_NAME | |
| codeToName | back to summary |
|---|---|
| protected final Map<Integer, String> codeToName code-to-name map. Derived classes should not modify the map after class construction. | |
| inverted | back to summary |
|---|---|
| protected final Map<String, Integer> inverted name-to-code map. Derived classes should not modify the map after class construction. | |
| Encoding | back to summary |
|---|---|
| public Encoding() | |
| add | back to summary |
|---|---|
| protected void add(int code, String name) This will add a character encoding. An already existing mapping is preserved when creating the reverse mapping. Should only be used during construction of the class.
| |
| contains | back to summary |
|---|---|
| public boolean contains(String name) Determines if the encoding has a mapping for the given name value.
| |
| contains | back to summary |
|---|---|
| public boolean contains(int code) Determines if the encoding has a mapping for the given code value.
| |
| getCodeToNameMap | back to summary |
|---|---|
| public Map Returns an unmodifiable view of the code -> name mapping. | |
| getEncodingName | back to summary |
|---|---|
| public abstract String getEncodingName() Returns the name of this encoding.
| |
| getInstance | back to summary |
|---|---|
| public static Encoding getInstance(COSName name) This will get an encoding by name. May return null. | |
| getName | back to summary |
|---|---|
| public String getName(int code) This will take a character code and get the name from the code.
| |
| getNameToCodeMap | back to summary |
|---|---|
| public Map Returns an unmodifiable view of the name -> code mapping. More than one name may map to the same code. | |
| overwrite | back to summary |
|---|---|
| protected void overwrite(int code, String name) This will add a character encoding. An already existing mapping is overwritten when creating the reverse mapping. Should only be used during construction of the class.
| |