Package com.impossibl.postgres.utils
Class Locales
- java.lang.Object
-
- com.impossibl.postgres.utils.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.
-
-
-
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
-
-