public final class HttpCharset extends HttpCharset implements SingletonValueRenderable, WithQValue<HttpCharsetRange>, scala.Product, java.io.Serializable
Constructor and Description |
---|
HttpCharset(java.lang.String value,
scala.collection.immutable.Seq<java.lang.String> aliases) |
Modifier and Type | Method and Description |
---|---|
scala.collection.immutable.Seq<java.lang.String> |
aliases() |
HttpCharset |
charsetWithUtf8Failover() |
static HttpCharset |
custom(java.lang.String value,
scala.collection.immutable.Seq<java.lang.String> aliases) |
static scala.util.Try<java.nio.charset.Charset> |
findNioCharset(java.lang.String name) |
java.lang.Iterable<java.lang.String> |
getAliases()
Java API
|
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.
|
java.lang.String |
value()
Returns the name of this charset.
|
HttpCharsetRange |
withQValue(float qValue)
An alias for toRange(float).
|
toRange
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
render
$init$, productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
withQValue
public HttpCharset(java.lang.String value, scala.collection.immutable.Seq<java.lang.String> aliases)
public static HttpCharset custom(java.lang.String value, scala.collection.immutable.Seq<java.lang.String> aliases)
public static scala.util.Try<java.nio.charset.Charset> findNioCharset(java.lang.String name)
public java.lang.String value()
HttpCharset
value
in interface SingletonValueRenderable
value
in class HttpCharset
public scala.collection.immutable.Seq<java.lang.String> aliases()
public java.nio.charset.Charset nioCharset()
nioCharset
in class HttpCharset
public HttpCharset charsetWithUtf8Failover()
java.nio.charset.Charset
instance, otherwise returns the UTF-8 charset.public HttpCharsetRange withQValue(float qValue)
HttpCharset
withQValue
in interface WithQValue<HttpCharsetRange>
withQValue
in class HttpCharset
public HttpCharsetRange toRange()
HttpCharset
toRange
in class HttpCharset
public java.lang.Iterable<java.lang.String> getAliases()
getAliases
in class HttpCharset