org.apache.fontbox.encoding
public abstract class Encoding extends Object
Version: $Revision: 1.1 $
Field Summary | |
---|---|
protected Map | codeToName
This is a mapping from a character code to a character name. |
protected Map | nameToCode
This is a mapping from a character name to a character code. |
Method Summary | |
---|---|
protected void | addCharacterEncoding(int code, String name)
This will add a character encoding.
|
String | getCharacter(int code)
This will get the character from the code.
|
static String | getCharacter(String name)
This will get the character from the name.
|
int | getCode(String name)
This will get the character code for the name.
|
String | getName(int code)
This will take a character code and get the name from the code.
|
String | getNameFromCharacter(char c)
This will take a character code and get the name from the code.
|
Parameters: code The character code that matches the character. name The name of the character.
Parameters: code The character code.
Returns: The printable character for the code.
Throws: IOException If there is not name for the character.
Parameters: name The name of the character.
Returns: The printable character for the code.
Parameters: name The name of the character.
Returns: The code for the character.
Throws: IOException If there is no character code for the name.
Parameters: code The character code.
Returns: The name of the character.
Throws: IOException If there is no name for the code.
Parameters: c The character.
Returns: The name of the character.
Throws: IOException If there is no name for the character.