Home » pdfbox-1.1.0-src » org.apache.fontbox.encoding » [javadoc | source]
org.apache.fontbox.encoding
abstract public class: Encoding [javadoc | source]
java.lang.Object
   org.apache.fontbox.encoding.Encoding

Direct Known Subclasses:
    MacRomanEncoding

This is an interface to a text encoder.
Field Summary
protected  Map<Integer, String> codeToName    This is a mapping from a character code to a character name. 
protected  Map<String, Integer> nameToCode    This is a mapping from a character name to a character code. 
Method from org.apache.fontbox.encoding.Encoding Summary:
addCharacterEncoding,   getCharacter,   getCharacter,   getCode,   getName,   getNameFromCharacter
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.fontbox.encoding.Encoding Detail:
 protected  void addCharacterEncoding(int code,
    String name) 
    This will add a character encoding.
 public String getCharacter(int code) throws IOException 
    This will get the character from the code.
 public static String getCharacter(String name) 
    This will get the character from the name.
 public int getCode(String name) throws IOException 
    This will get the character code for the name.
 public String getName(int code) throws IOException 
    This will take a character code and get the name from the code.
 public String getNameFromCharacter(char c) throws IOException 
    This will take a character code and get the name from the code.