Package org.igniterealtime.jbosh
Class AttrCharsets
- java.lang.Object
-
- org.igniterealtime.jbosh.AbstractAttr<java.lang.String>
-
- org.igniterealtime.jbosh.AttrCharsets
-
- All Implemented Interfaces:
java.lang.Comparable
final class AttrCharsets extends AbstractAttr<java.lang.String>
Data type representing the getValue of thecharsets
attribute of thebosh
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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static AttrCharsets
createFromString(java.lang.String str)
Creates a new attribute instance from the provided String.(package private) boolean
isAccepted(java.lang.String name)
Determines whether or not the specified charset is supported.
-
-
-
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 isnull
-
isAccepted
boolean isAccepted(java.lang.String name)
Determines whether or not the specified charset is supported.- Parameters:
name
- encoding name
-
-