public final class Charsets extends Object
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_8
8-bit UTF (UCS Transformation Format).
|
Modifier and Type | Method and Description |
---|---|
static CharsetDecoder |
getDecoder(Charset charset)
Returns a cached thread-local
CharsetDecoder for the specified
charset.
|
static CharsetEncoder |
getEncoder(Charset charset)
Returns a cached thread-local
CharsetEncoder for the specified
charset.
|
public static final Charset UTF_8
public static final Charset ISO_8859_1
public static final Charset US_ASCII
public static CharsetEncoder getEncoder(Charset charset)
CharsetEncoder
for the specified
charset.
charset
- Character encoding
public static CharsetDecoder getDecoder(Charset charset)
CharsetDecoder
for the specified
charset.
charset
- Character encoding