Top Description Fields Constructors Methods
org.apache.pdfbox.cos

pack-priv final Class PDFDocEncoding

extends Object
Class Inheritance
Imports
java.io.ByteArrayOutputStream, java.util.HashMap, .Map

The "PDFDocEncoding" encoding. Note that this is *not* a Type 1 font encoding, it is used only within PDF "text strings".

Field Summary

Modifier and TypeField and Description
private static final int[]
private static final char
private static final Map<Character, Integer>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static boolean
containsChar(char
UTF-16 character
character
)

Returns true if the given character is available in PDFDocEncoding.

public static byte[]
getBytes(String text)

Returns the given string encoded with PDFDocEncoding.

private static void
set(int code, char unicode)

public static String
toString(byte[] bytes)

Returns the string representation of the given PDFDocEncoded bytes.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CODE_TO_UNIback to summary
private static final int[] CODE_TO_UNI
REPLACEMENT_CHARACTERback to summary
private static final char REPLACEMENT_CHARACTER
UNI_TO_CODEback to summary
private static final Map<Character, Integer> UNI_TO_CODE

Constructor Detail

PDFDocEncodingback to summary
private PDFDocEncoding()

Method Detail

containsCharback to summary
public static boolean containsChar(char character)

Returns true if the given character is available in PDFDocEncoding.

Parameters
character:char

UTF-16 character

getBytesback to summary
public static byte[] getBytes(String text)

Returns the given string encoded with PDFDocEncoding.

setback to summary
private static void set(int code, char unicode)
toStringback to summary
public static String toString(byte[] bytes)

Returns the string representation of the given PDFDocEncoded bytes.