Home » pdfbox-1.1.0-src » org.apache.pdfbox.encoding.conversion » [javadoc | source]
public class: CJKConverter [javadoc | source]

All Implemented Interfaces:

CJKConverter converts encodings defined in CJKEncodings.
 public CJKConverter(String encoding) 
    Constructs a CJKConverter from a PDF encoding name.
    encoding - the encoding to be used
Method from org.apache.pdfbox.encoding.conversion.CJKConverter Summary:
convertBytes,   convertString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.pdfbox.encoding.conversion.CJKConverter Detail:
 public String convertBytes(byte[] c,
    int offset,
    int length,
    CMap cmap) 
    Convert bytes to a string. We just convert bytes within coderange defined in CMap. {@inheritDoc}
 public String convertString(String s) 
    Convert a string. It occurs when a cmap lookup returned converted bytes successfully, but we still need to convert its encoding. The parameter s is constructs as one byte or a UTF-16BE encoded string. Note: pdfbox set string to UTF-16BE charset before calling into this. {@inheritDoc}