Modifier and Type | Field and Description |
---|---|
static Charset |
ISO_8859_1
ISO Latin Alphabet No. 1, as known as ISO-LATIN-1
|
static Charset |
US_ASCII
7-bit ASCII, as known as ISO646-US or the Basic Latin block of the
Unicode character set
|
static Charset |
UTF_16
16-bit UTF (UCS Transformation Format) whose byte order is identified by
an optional byte-order mark
|
static Charset |
UTF_16BE
16-bit UTF (UCS Transformation Format) whose byte order is big-endian
|
static Charset |
UTF_16LE
16-bit UTF (UCS Transformation Format) whose byte order is little-endian
|
static Charset |
UTF_8
8-bit UTF (UCS Transformation Format)
|
Modifier and Type | Method and Description |
---|---|
static CharsetDecoder |
decoder(Charset charset)
Returns a cached thread-local
CharsetDecoder for the specified Charset . |
static CharsetDecoder |
decoder(Charset charset,
CodingErrorAction codingErrorAction)
Returns a new
CharsetDecoder for the Charset with the specified error action. |
static CharsetDecoder |
decoder(Charset charset,
CodingErrorAction malformedInputAction,
CodingErrorAction unmappableCharacterAction)
Returns a new
CharsetDecoder for the Charset with specified error actions. |
static CharsetEncoder |
encoder(Charset charset)
Returns a cached thread-local
CharsetEncoder for the specified Charset . |
static CharsetEncoder |
encoder(Charset charset,
CodingErrorAction codingErrorAction)
Returns a new
CharsetEncoder for the Charset with the specified error action. |
static CharsetEncoder |
encoder(Charset charset,
CodingErrorAction malformedInputAction,
CodingErrorAction unmappableCharacterAction)
Returns a new
CharsetEncoder for the Charset with specified error actions. |
static CharsetDecoder |
getDecoder(Charset charset)
Deprecated.
Use
decoder(Charset) . |
static CharsetEncoder |
getEncoder(Charset charset)
Deprecated.
Use
encoder(Charset) . |
static Charset[] |
values() |
public static final Charset UTF_16
public static final Charset UTF_16BE
public static final Charset UTF_16LE
public static final Charset UTF_8
public static final Charset ISO_8859_1
public static final Charset US_ASCII
public static Charset[] values()
@Deprecated public static CharsetEncoder getEncoder(Charset charset)
encoder(Charset)
.public static CharsetEncoder encoder(Charset charset, CodingErrorAction malformedInputAction, CodingErrorAction unmappableCharacterAction)
CharsetEncoder
for the Charset
with specified error actions.charset
- The specified charsetmalformedInputAction
- The encoder's action for malformed-input errorsunmappableCharacterAction
- The encoder's action for unmappable-character errorscharset
public static CharsetEncoder encoder(Charset charset, CodingErrorAction codingErrorAction)
CharsetEncoder
for the Charset
with the specified error action.charset
- The specified charsetcodingErrorAction
- The encoder's action for malformed-input and unmappable-character errorscharset
public static CharsetEncoder encoder(Charset charset)
CharsetEncoder
for the specified Charset
.charset
- The specified charsetcharset
@Deprecated public static CharsetDecoder getDecoder(Charset charset)
decoder(Charset)
.public static CharsetDecoder decoder(Charset charset, CodingErrorAction malformedInputAction, CodingErrorAction unmappableCharacterAction)
CharsetDecoder
for the Charset
with specified error actions.charset
- The specified charsetmalformedInputAction
- The decoder's action for malformed-input errorsunmappableCharacterAction
- The decoder's action for unmappable-character errorscharset
public static CharsetDecoder decoder(Charset charset, CodingErrorAction codingErrorAction)
CharsetDecoder
for the Charset
with the specified error action.charset
- The specified charsetcodingErrorAction
- The decoder's action for malformed-input and unmappable-character errorscharset
public static CharsetDecoder decoder(Charset charset)
CharsetDecoder
for the specified Charset
.charset
- The specified charsetcharset
Copyright © 2008–2019 The Netty Project. All rights reserved.