Package org.apache.pdfbox.cos
Class PDFDocEncoding
java.lang.Object
org.apache.pdfbox.cos.PDFDocEncoding
The "PDFDocEncoding" encoding. Note that this is *not* a Type 1 font encoding, it is used only
within PDF "text strings".
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int[]
private static final char
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
containsChar
(char character) Returns true if the given character is available in PDFDocEncoding.static byte[]
Returns the given string encoded with PDFDocEncoding.private static void
set
(int code, char unicode) static String
toString
(byte[] bytes) Returns the string representation of the given PDFDocEncoded bytes.
-
Field Details
-
REPLACEMENT_CHARACTER
private static final char REPLACEMENT_CHARACTER- See Also:
-
CODE_TO_UNI
private static final int[] CODE_TO_UNI -
UNI_TO_CODE
-
-
Constructor Details
-
PDFDocEncoding
private PDFDocEncoding()
-
-
Method Details
-
set
private static void set(int code, char unicode) -
toString
Returns the string representation of the given PDFDocEncoded bytes. -
getBytes
Returns the given string encoded with PDFDocEncoding. -
containsChar
public static boolean containsChar(char character) Returns true if the given character is available in PDFDocEncoding.- Parameters:
character
- UTF-16 character
-