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

All Implemented Interfaces:
    COSObjectable

Direct Known Subclasses:
    WinAnsiEncoding, PdfDocEncoding, AFMEncoding, StandardEncoding, MacRomanEncoding, DictionaryEncoding

This is an interface to a text encoder.
Field Summary
protected final  Map<Integer, COSName> codeToName    This is a mapping from a character code to a character name. 
protected final  Map<COSName, Integer> nameToCode    This is a mapping from a character name to a character code. 
Method from org.apache.pdfbox.encoding.Encoding Summary:
addCharacterEncoding,   getCharacter,   getCharacter,   getCode,   getCodeToNameMap,   getName,   getNameFromCharacter,   getNameToCodeMap
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.pdfbox.encoding.Encoding Detail:
 protected  void addCharacterEncoding(int code,
    COSName 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(COSName name) 
    This will get the character from the name.
 public int getCode(COSName name) throws IOException 
    This will get the character code for the name.
 public Map<Integer, COSName> getCodeToNameMap() 
    Returns an unmodifiable view of the Code2Name mapping.
 public COSName getName(int code) throws IOException 
    This will take a character code and get the name from the code.
 public COSName getNameFromCharacter(char c) throws IOException 
    This will take a character code and get the name from the code.
 public Map<COSName, Integer> getNameToCodeMap() 
    Returns an unmodifiable view of the Name2Code mapping.