org.pdfbox.encoding
Class DictionaryEncoding

java.lang.Object
  extended byorg.pdfbox.encoding.Encoding
      extended byorg.pdfbox.encoding.DictionaryEncoding
All Implemented Interfaces:
COSObjectable

public class DictionaryEncoding
extends Encoding

This will perform the encoding from a dictionary.

Version:
$Revision: 1.13 $
Author:
Ben Litchfield

Field Summary
 
Fields inherited from class org.pdfbox.encoding.Encoding
codeToName, nameToCode
 
Constructor Summary
DictionaryEncoding(COSDictionary fontEncoding)
          Constructor.
 
Method Summary
 COSBase getCOSObject()
          Convert this standard java object to a COS object.
 
Methods inherited from class org.pdfbox.encoding.Encoding
addCharacterEncoding, getCharacter, getCharacter, getCode, getName, getNameFromCharacter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DictionaryEncoding

public DictionaryEncoding(COSDictionary fontEncoding)
                   throws IOException
Constructor.

Parameters:
fontEncoding - The encoding dictionary.
Throws:
IOException - If there is a problem getting the base font.
Method Detail

getCOSObject

public COSBase getCOSObject()
Convert this standard java object to a COS object.

Returns:
The cos object that matches this Java object.