Class LocaleUtil


  • public class LocaleUtil
    extends Object
    Utility methods for Locale handling
    Since:
    4.5
    Author:
    Marco Meschieri - LogicalDOC
    • Constructor Detail

      • LocaleUtil

        public LocaleUtil()
    • Method Detail

      • toLocale

        public static Locale toLocale​(String str)
        Creates the locale from a string
        Parameters:
        str - String in format language_country_variant
        Returns:
        the locale that corresponds to str