public final class RFC1766Lang
extends java.lang.Object
| Constructor and Description |
|---|
RFC1766Lang(java.lang.String str)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLangCode()
Returns the language code string.
|
boolean |
isSyntaxCorrect()
Returns
true if the language code
string is syntactically compliant. |
public RFC1766Lang(java.lang.String str)
str - The ASCII string for the language code.public java.lang.String getLangCode()
public boolean isSyntaxCorrect()
true if the language code
string is syntactically compliant.
The primary tag must be either a two-letter code,
the letter i, or the letter x (case insensitive);
no checking is done against registry lists.