Class AttrCharsets

java.lang.Object
org.igniterealtime.jbosh.AbstractAttr<String>
org.igniterealtime.jbosh.AttrCharsets
All Implemented Interfaces:
Comparable

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

    • charsets

      private final String[] charsets
      Array of the accepted character sets.
  • Constructor Details

    • AttrCharsets

      private AttrCharsets(String val)
      Creates a new attribute object.
      Parameters:
      val - attribute getValue
  • Method Details

    • createFromString

      static AttrCharsets createFromString(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(String name)
      Determines whether or not the specified charset is supported.
      Parameters:
      name - encoding name