Class LocaleUtil

java.lang.Object
com.logicaldoc.util.LocaleUtil

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

    • 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