|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.at4j.support.nio.charset.Charsets
public final class Charsets
This class contains Charset
constants for commonly used charsets and
utility methods for converting between byte and character data.
Field Summary | |
---|---|
static Charset |
ASCII
The US-ASCII charset. |
static Charset |
UTF16
The UTF-16 charset. |
static Charset |
UTF8
The UTF-8 charset. |
Method Summary | |
---|---|
static byte[] |
getBytes(String text,
Charset cs)
Convert the given text to byte data using the supplied charset. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Charset UTF8
public static final Charset UTF16
public static final Charset ASCII
Method Detail |
---|
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
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |