Class Locales


  • public class Locales
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Locales()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getJavaCompatibleLocale​(java.lang.String localeSpec)
      If the locale specifier matches a win32 type locale (e.g.
      • Methods inherited from class java.lang.Object

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

      • Locales

        public Locales()
    • Method Detail

      • getJavaCompatibleLocale

        public static java.lang.String getJavaCompatibleLocale​(java.lang.String localeSpec)
        If the locale specifier matches a win32 type locale (e.g. "English_United States.1252") it is mapped to a matching Java locale spec by manually looking through available locales and matching it based on full language name and full country name.
        Parameters:
        localeSpec - Locale specifier to test and transform
        Returns:
        Java compatible locale specifier