org.apache.pdfbox.encoding
Class WinAnsiEncoding

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

public class WinAnsiEncoding
extends Encoding

This the win ansi encoding.

Version:
$Revision: 1.10 $
Author:
Ben Litchfield

Field Summary
static WinAnsiEncoding INSTANCE
          Singleton instance of this class.
 
Fields inherited from class org.apache.pdfbox.encoding.Encoding
codeToName, nameToCode, NOTDEF
 
Constructor Summary
WinAnsiEncoding()
          Constructor.
 
Method Summary
 COSBase getCOSObject()
          Convert this standard java object to a COS object.
 java.lang.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 WinAnsiEncoding INSTANCE
Singleton instance of this class.

Since:
Apache PDFBox 1.3.0
Constructor Detail

WinAnsiEncoding

public WinAnsiEncoding()
Constructor.

Method Detail

getName

public java.lang.String getName(int code)
                         throws java.io.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:
java.io.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.