Class HttpCharset

    • Constructor Summary

      Constructor Description
      HttpCharset​(java.lang.String value, scala.collection.immutable.Seq<java.lang.String> aliases)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      scala.collection.immutable.Seq<java.lang.String> aliases()  
      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).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface scala.Equals

        canEqual, equals
      • Methods inherited from interface scala.Product

        productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
    • Constructor Detail

      • HttpCharset

        public HttpCharset​(java.lang.String value,
                           scala.collection.immutable.Seq<java.lang.String> aliases)
    • Method Detail

      • custom

        public static HttpCharset custom​(java.lang.String value,
                                         scala.collection.immutable.Seq<java.lang.String> aliases)
      • findNioCharset

        public static scala.util.Try<java.nio.charset.Charset> findNioCharset​(java.lang.String name)
      • aliases

        public scala.collection.immutable.Seq<java.lang.String> aliases()
      • nioCharset

        public java.nio.charset.Charset nioCharset()
        Returns the Charset for this charset if available or throws an exception otherwise
        Specified by:
        nioCharset in class HttpCharset
      • getAliases

        public java.lang.Iterable<java.lang.String> getAliases()
        Java API
        Specified by:
        getAliases in class HttpCharset