Package edu.harvard.hul.ois.jhove
Class RFC1766Lang
- java.lang.Object
-
- edu.harvard.hul.ois.jhove.RFC1766Lang
-
public final class RFC1766Lang extends Object
Class encapsulating RFC-1766 language codes.
-
-
Constructor Summary
Constructors Constructor Description RFC1766Lang(String str)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLangCode()Returns the language code string.booleanisSyntaxCorrect()Returnstrueif the language code string is syntactically compliant.
-
-
-
Constructor Detail
-
RFC1766Lang
public RFC1766Lang(String str)
Constructor.- Parameters:
str- The ASCII string for the language code.
-
-
Method Detail
-
getLangCode
public String getLangCode()
Returns the language code string.
-
isSyntaxCorrect
public boolean isSyntaxCorrect()
Returnstrueif 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.
-
-