public final class HttpCharsets
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static HttpCharset |
ISO_8859_1 |
static HttpCharset |
US_ASCII |
static HttpCharset |
UTF_16 |
static HttpCharset |
UTF_16BE |
static HttpCharset |
UTF_16LE |
static HttpCharset |
UTF_8 |
Modifier and Type | Method and Description |
---|---|
static HttpCharset |
custom(java.lang.String value,
java.lang.String... aliases)
Create and return a custom charset.
|
static java.util.Optional<HttpCharset> |
lookup(java.lang.String name)
Returns Some(charset) if the charset with the given name was found and None otherwise.
|
public static final HttpCharset US_ASCII
public static final HttpCharset ISO_8859_1
public static final HttpCharset UTF_8
public static final HttpCharset UTF_16
public static final HttpCharset UTF_16BE
public static final HttpCharset UTF_16LE
public static HttpCharset custom(java.lang.String value, java.lang.String... aliases)
public static java.util.Optional<HttpCharset> lookup(java.lang.String name)