Package org.igniterealtime.jbosh
Class AttrCharsets
- All Implemented Interfaces:
Comparable
Data type representing the getValue of the
charsets
attribute of the
bosh
element.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static AttrCharsets
createFromString
(String str) Creates a new attribute instance from the provided String.(package private) boolean
isAccepted
(String name) Determines whether or not the specified charset is supported.
-
Field Details
-
charsets
Array of the accepted character sets.
-
-
Constructor Details
-
AttrCharsets
Creates a new attribute object.- Parameters:
val
- attribute getValue
-
-
Method Details
-
createFromString
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
Determines whether or not the specified charset is supported.- Parameters:
name
- encoding name
-