Class HttpCharset

    • Constructor Summary

      Constructors 
      Constructor Description
      HttpCharset()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method 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).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HttpCharset

        public HttpCharset()
    • Method Detail

      • value

        public abstract java.lang.String value()
        Returns the name of this charset.
      • toRange

        public HttpCharsetRange toRange()
        Creates a range from this charset with qValue = 1.
      • toRange

        public HttpCharsetRange toRange​(float qValue)
        Creates a range from this charset with the given qValue.
      • withQValue

        public abstract HttpCharsetRange withQValue​(float qValue)
        An alias for toRange(float).
      • getAliases

        public abstract java.lang.Iterable<java.lang.String> getAliases()
        Returns the predefined alias names for this charset.
      • nioCharset

        public abstract java.nio.charset.Charset nioCharset()
        Returns the Charset for this charset if available or throws an exception otherwise.