Interface EncodingConverter
-
- All Known Implementing Classes:
CJKConverter
public interface EncodingConverterEncodingConverter 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringconvertBytes(byte[] c, int offset, int length, org.apache.fontbox.cmap.CMap cmap)Convert bytes to a string.java.lang.StringconvertString(java.lang.String s)Convert a string.
-
-
-
Method Detail
-
convertString
java.lang.String convertString(java.lang.String s)
Convert a string.- Parameters:
s- the string to be converted- Returns:
- the converted string
-
convertBytes
java.lang.String convertBytes(byte[] c, int offset, int length, org.apache.fontbox.cmap.CMap cmap)Convert bytes to a string.- Parameters:
c- the byte array to be convertedoffset- the starting offset of the arraylength- the number of bytescmap- the cmap to be used for conversion- Returns:
- the converted string
-
-