Class CharsetUtil
java.lang.Object
org.jboss.netty.util.CharsetUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ThreadLocal<Map<Charset, CharsetDecoder>> private static final ThreadLocal<Map<Charset, CharsetEncoder>> static final CharsetISO Latin Alphabet No.static final Charset7-bit ASCII, as known as ISO646-US or the Basic Latin block of the Unicode character setstatic final Charset16-bit UTF (UCS Transformation Format) whose byte order is identified by an optional byte-order markstatic final Charset16-bit UTF (UCS Transformation Format) whose byte order is big-endianstatic final Charset16-bit UTF (UCS Transformation Format) whose byte order is little-endianstatic final Charset8-bit UTF (UCS Transformation Format) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CharsetDecodergetDecoder(Charset charset) Returns a cached thread-localCharsetDecoderfor the specified charset.static CharsetEncodergetEncoder(Charset charset) Returns a cached thread-localCharsetEncoderfor 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-localCharsetEncoderfor the specified charset. -
getDecoder
Returns a cached thread-localCharsetDecoderfor the specified charset.
-