Package org.jboss.netty.util
Class CharsetUtil
java.lang.Object
org.jboss.netty.util.CharsetUtil
A utility class that provides various common operations and constants
related with
Charset
and its relevant classes.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ThreadLocal<Map<Charset,
CharsetDecoder>> private static final ThreadLocal<Map<Charset,
CharsetEncoder>> static final Charset
ISO Latin Alphabet No.static final Charset
7-bit ASCII, as known as ISO646-US or the Basic Latin block of the Unicode character setstatic final Charset
16-bit UTF (UCS Transformation Format) whose byte order is identified by an optional byte-order markstatic final Charset
16-bit UTF (UCS Transformation Format) whose byte order is big-endianstatic final Charset
16-bit UTF (UCS Transformation Format) whose byte order is little-endianstatic final Charset
8-bit UTF (UCS Transformation Format) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CharsetDecoder
getDecoder
(Charset charset) Returns a cached thread-localCharsetDecoder
for the specified charset.static CharsetEncoder
getEncoder
(Charset charset) Returns a cached thread-localCharsetEncoder
for the specified charset.
-
Field Details
-
UTF_16
16-bit UTF (UCS Transformation Format) whose byte order is identified by an optional byte-order mark -
UTF_16BE
16-bit UTF (UCS Transformation Format) whose byte order is big-endian -
UTF_16LE
16-bit UTF (UCS Transformation Format) whose byte order is little-endian -
UTF_8
8-bit UTF (UCS Transformation Format) -
ISO_8859_1
ISO Latin Alphabet No. 1, as known as ISO-LATIN-1 -
US_ASCII
7-bit ASCII, as known as ISO646-US or the Basic Latin block of the Unicode character set -
encoders
-
decoders
-
-
Constructor Details
-
CharsetUtil
private CharsetUtil()
-
-
Method Details
-
getEncoder
Returns a cached thread-localCharsetEncoder
for the specified charset. -
getDecoder
Returns a cached thread-localCharsetDecoder
for the specified charset.
-