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 thecharsetsattribute of theboshelement.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String[]charsetsArray of the accepted character sets.
-
Constructor Summary
Constructors Modifier Constructor Description privateAttrCharsets(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 AttrCharsetscreateFromString(java.lang.String str)Creates a new attribute instance from the provided String.(package private) booleanisAccepted(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
nullif provided string isnull
-
isAccepted
boolean isAccepted(java.lang.String name)
Determines whether or not the specified charset is supported.- Parameters:
name- encoding name
-
-