| Modifier and Type | Field and Description |
|---|---|
static Charset |
ASCII
The US-ASCII charset.
|
static Charset |
UTF16
The UTF-16 charset.
|
static Charset |
UTF8
The UTF-8 charset.
|
public static final Charset UTF8
public static final Charset UTF16
public static final Charset ASCII
public static byte[] getBytes(String text, Charset cs) throws At4JException
text - The text to convert.cs - The charset to use for converting the text.At4JException - On character coding errors. See
CharacterCodingException.