public abstract class HttpCharset
extends java.lang.Object
HttpCharsets
for a set of predefined charsets and
static constructors to create custom charsets.Constructor and Description |
---|
HttpCharset() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Iterable<java.lang.String> |
getAliases()
Returns the predefined alias names for this charset.
|
abstract java.nio.charset.Charset |
nioCharset()
Returns the Charset for this charset if available or throws an exception otherwise.
|
HttpCharsetRange |
toRange()
Creates a range from this charset with qValue = 1.
|
HttpCharsetRange |
toRange(float qValue)
Creates a range from this charset with the given qValue.
|
abstract java.lang.String |
value()
Returns the name of this charset.
|
abstract HttpCharsetRange |
withQValue(float qValue)
An alias for toRange(float).
|
public abstract java.lang.String value()
public HttpCharsetRange toRange()
public HttpCharsetRange toRange(float qValue)
public abstract HttpCharsetRange withQValue(float qValue)
public abstract java.lang.Iterable<java.lang.String> getAliases()
public abstract java.nio.charset.Charset nioCharset()