Class AttrCharsets

  • All Implemented Interfaces:
    java.lang.Comparable

    final class AttrCharsets
    extends AbstractAttr<java.lang.String>
    Data type representing the getValue of the charsets attribute of the bosh element.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String[] charsets
      Array of the accepted character sets.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private AttrCharsets​(java.lang.String val)
      Creates a new attribute object.
    • Field Detail

      • charsets

        private final java.lang.String[] charsets
        Array of the accepted character sets.
    • Constructor Detail

      • AttrCharsets

        private AttrCharsets​(java.lang.String val)
        Creates a new attribute object.
        Parameters:
        val - attribute getValue
    • Method Detail

      • createFromString

        static AttrCharsets createFromString​(java.lang.String str)
        Creates a new attribute instance from the provided String.
        Parameters:
        str - string representation of the attribute
        Returns:
        attribute instance or null if provided string is null
      • isAccepted

        boolean isAccepted​(java.lang.String name)
        Determines whether or not the specified charset is supported.
        Parameters:
        name - encoding name