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 Type
    Method
    Description
    convertBytes(byte[] c, int offset, int length, CMap cmap)
    Convert bytes to a string.
    Convert a string.
  • Method Details

    • 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