Class LocaleFactory


  • public final class LocaleFactory
    extends java.lang.Object
    Author:
    Simon Thoresen Hult
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Locale fromLanguageTag​(java.lang.String tag)
      Implements a simple parser for RFC5646 language tags.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • fromLanguageTag

        public static java.util.Locale fromLanguageTag​(java.lang.String tag)
        Implements a simple parser for RFC5646 language tags. The language tag is parsed into a Locale.
        Parameters:
        tag - the language tag to parse
        Returns:
        the corresponding Locale