org.apache.pdfbox.encoding
Class MacRomanEncoding

java.lang.Object
  extended by org.apache.pdfbox.encoding.Encoding
      extended by org.apache.pdfbox.encoding.MacRomanEncoding
All Implemented Interfaces:
COSObjectable

public class MacRomanEncoding
extends Encoding

This is an interface to a text encoder.

Version:
$Revision: 1.10 $
Author:
Ben Litchfield

Field Summary
static MacRomanEncoding INSTANCE
          Singleton instance of this class.
 
Fields inherited from class org.apache.pdfbox.encoding.Encoding
codeToName, nameToCode, NOTDEF
 
Constructor Summary
MacRomanEncoding()
          Constructor.
 
Method Summary
 COSBase getCOSObject()
          Convert this standard java object to a COS object.
 String getName(int code)
          This will take a character code and get the name from the code.
 
Methods inherited from class org.apache.pdfbox.encoding.Encoding
addCharacterEncoding, getCharacter, getCharacter, getCode, getCodeToNameMap, getNameFromCharacter, getNameToCodeMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final MacRomanEncoding INSTANCE
Singleton instance of this class.

Since:
Apache PDFBox 1.3.0
Constructor Detail

MacRomanEncoding

public MacRomanEncoding()
Constructor.

Method Detail

getName

public String getName(int code)
               throws IOException
Description copied from class: Encoding
This will take a character code and get the name from the code.

Overrides:
getName in class Encoding
Parameters:
code - The character code.
Returns:
The name of the character.
Throws:
IOException - If there is no name for the code.

getCOSObject

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

Returns:
The cos object that matches this Java object.


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.