|
Gnostice PDFOne
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gnostice.pdfone.encodings.PdfEncodings
This class defines constants for specifying a character encoding that is different from the font's built-in encoding.
Field Summary | |
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 Summary | |
PdfEncodings()
|
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int WINANSI
CP1252
and
LATIN_1
.
public static final int CP1252
WINANSI
and
LATIN_1
.
public static final int LATIN_1
CP1252
and
WINANSI
.
public static final int UTF_16BE
Constructor Detail |
public PdfEncodings()
Method Detail |
public static byte[] getBytes(String s, int encoding)
s
- string that needs to representedencoding
- encodign in which the string is to be represented
getChars(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
represented
getBytes(String, int)
|
Pro. Ed. v5.0.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |