EncodingConverter
public class CJKConverter extends java.lang.Object implements EncodingConverter
Constructor | Description |
---|---|
CJKConverter(java.lang.String encoding) |
Constructs a CJKConverter from a PDF encoding name.
|
Modifier and Type | Method | 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 EncodingConverter
s
- the string to be convertedpublic java.lang.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 conversion