public final class RFC1766Lang extends Object
| Constructor and Description |
|---|
RFC1766Lang(String str)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getLangCode()
Returns the language code string.
|
boolean |
isSyntaxCorrect()
Returns
true if the language code
string is syntactically compliant. |
public RFC1766Lang(String str)
str - The ASCII string for the language code.public 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.Copyright © 2008–2017 The Open Preservation Foundation. All rights reserved.