public class CJKConverter extends Object implements EncodingConverter
Constructor and Description |
---|
CJKConverter(String encoding)
Constructs a CJKConverter from a PDF encoding name.
|
Modifier and Type | Method and Description |
---|---|
String |
convertBytes(byte[] c,
int offset,
int length,
org.apache.fontbox.cmap.CMap cmap)
Convert bytes to a string.
|
String |
convertString(String s)
Convert a string.
|
public CJKConverter(String encoding)
encoding
- the encoding to be usedpublic String convertString(String s)
convertString
in interface EncodingConverter
s
- the string to be convertedpublic String convertBytes(byte[] c, int offset, int length, org.apache.fontbox.cmap.CMap cmap)
convertBytes
in interface EncodingConverter
c
- the byte array to be convertedoffset
- the starting offset of the arraylength
- the number of bytescmap
- the cmap to be used for conversionCopyright © 2002-2015 The Apache Software Foundation. All Rights Reserved.