|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fontbox.encoding.Encoding
public abstract class Encoding
This is an interface to a text encoder.
| Field Summary | |
|---|---|
protected Map<Integer,String> |
codeToName
Deprecated. This is a mapping from a character code to a character name. |
protected Map<String,Integer> |
nameToCode
Deprecated. This is a mapping from a character name to a character code. |
| Constructor Summary | |
|---|---|
Encoding()
Deprecated. |
|
| Method Summary | |
|---|---|
protected void |
addCharacterEncoding(int code,
String name)
Deprecated. This will add a character encoding. |
String |
getCharacter(int code)
Deprecated. This will get the character from the code. |
static String |
getCharacter(String name)
Deprecated. This will get the character from the name. |
int |
getCode(String name)
Deprecated. This will get the character code for the name. |
String |
getName(int code)
Deprecated. This will take a character code and get the name from the code. |
String |
getNameFromCharacter(char c)
Deprecated. This will take a character code and get the name from the code. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map<Integer,String> codeToName
protected Map<String,Integer> nameToCode
| Constructor Detail |
|---|
public Encoding()
| Method Detail |
|---|
protected void addCharacterEncoding(int code,
String name)
code - The character code that matches the character.name - The name of the character.
public int getCode(String name)
throws IOException
name - The name of the character.
IOException - If there is no character code for the name.
public String getName(int code)
throws IOException
code - The character code.
IOException - If there is no name for the code.
public String getNameFromCharacter(char c)
throws IOException
c - The character.
IOException - If there is no name for the character.
public String getCharacter(int code)
throws IOException
code - The character code.
IOException - If there is not name for the character.public static String getCharacter(String name)
name - The name of the character.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||