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
Modifier and TypeMethodDescriptionconvertBytes
(byte[] c, int offset, int length, CMap cmap) Convert bytes to a string.Convert a string.
-
Method Details
-
convertString
Convert a string.- Parameters:
s
- the string to be converted- Returns:
- the converted string
-
convertBytes
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
-