Class RFC1766Lang


  • public final class RFC1766Lang
    extends Object
    Class encapsulating RFC-1766 language codes.
    • 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()
        Returns 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.