Package edu.harvard.hul.ois.jhove
Class RFC1766Lang
java.lang.Object
edu.harvard.hul.ois.jhove.RFC1766Lang
Class encapsulating RFC-1766 language codes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the language code string.booleanReturnstrueif the language code string is syntactically compliant.
-
Constructor Details
-
RFC1766Lang
Constructor.- Parameters:
str- The ASCII string for the language code.
-
-
Method Details
-
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.
-