public class PDFEncodings extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CP1252
Windows Code Page 1252 encoding.
|
static int |
LATIN_1
Western European Latin encoding.
|
static int |
UTF_16BE
16-bit Unicode Tranformation Format (Big Endian byte order)
|
static int |
WINANSI
Windows Ansi encoding.
|
| Constructor and Description |
|---|
PDFEncodings() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getBytes(String s,
int encoding)
Returns a byte array representing a specified string in a
specified encoding.
|
static char[] |
getChars(byte[] bytes,
int encoding)
Returns a character array representing a specified byte array
in a specified encoding.
|
public static final int WINANSI
public static final int CP1252
public static final int LATIN_1
public static final int UTF_16BE
public static byte[] getBytes(String s, int encoding)
s - string that needs to representedencoding - encodign in which the string is to be representedgetChars(byte[], int)public static char[] getChars(byte[] bytes,
int encoding)
bytes - byte array that needs to be representedencoding - encoding with which the byte array needs to be
representedgetBytes(String, int)