public class CJKConverter extends java.lang.Object implements EncodingConverter
| Constructor and Description |
|---|
CJKConverter(java.lang.String encoding)
Constructs a CJKConverter from a PDF encoding name.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
convertBytes(byte[] c,
int offset,
int length,
org.apache.fontbox.cmap.CMap cmap)
Convert bytes to a string.
|
java.lang.String |
convertString(java.lang.String s)
Convert a string.
|
public CJKConverter(java.lang.String encoding)
encoding - the encoding to be usedpublic java.lang.String convertString(java.lang.String s)
convertString in interface EncodingConverters - the string to be convertedpublic java.lang.String convertBytes(byte[] c,
int offset,
int length,
org.apache.fontbox.cmap.CMap cmap)
convertBytes in interface EncodingConverterc - the byte array to be convertedoffset - the starting offset of the arraylength - the number of bytescmap - the cmap to be used for conversion