org.apache.pdfbox.encoding.conversion
Interface EncodingConverter

All Known Implementing Classes:
CJKConverter

public interface EncodingConverter

EncodingConverter converts string or characters in one encoding, which is specified in PDF file, to another string with respective java charset. The mapping from PDF encoding name to java charset name is maintained by EncodingConversionManager

Version:
$Revision: 1.0 $
Author:
Pin Xue (http://www.pinxue.net), Holly Lee (holly.lee (at) gmail.com)

Method Summary
 String convertBytes(byte[] c, int offset, int length, CMap cmap)
          Convert bytes to a string.
 String convertString(String s)
          Convert a string.
 

Method Detail

convertString

String convertString(String s)
Convert a string.

Parameters:
s - the string to be converted
Returns:
the converted string

convertBytes

String convertBytes(byte[] c,
                    int offset,
                    int length,
                    CMap cmap)
Convert bytes to a string.

Parameters:
c - the byte array to be converted
offset - the starting offset of the array
length - the number of bytes
cmap - the cmap to be used for conversion
Returns:
the converted string


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