CultureInfo

Inheritance: java.lang.Object

public class CultureInfo

Map for .Net’s System.Globalization.CultureInfo.

Constructors

ConstructorDescription
CultureInfo(String cultureName)Constructor with .Net-style Culture Name.
CultureInfo(String cultureName, boolean useUserOverride)Constructor with .Net-style Culture Name.
CultureInfo(Locale locale)Constructor with Java-style Locale.

Methods

MethodDescription
getDateTimeFormat()Gets .Net-style DateTimeFormatInfo
getLocale(System.Globalization.CultureInfo cultureInfo)Gets java Locale from .Net-style CultureInfo

CultureInfo(String cultureName)

public CultureInfo(String cultureName)

Constructor with .Net-style Culture Name.

Parameters:

ParameterTypeDescription
cultureNamejava.lang.String

CultureInfo(String cultureName, boolean useUserOverride)

public CultureInfo(String cultureName, boolean useUserOverride)

Constructor with .Net-style Culture Name.

Parameters:

ParameterTypeDescription
cultureNamejava.lang.String
useUserOverrideboolean

CultureInfo(Locale locale)

public CultureInfo(Locale locale)

Constructor with Java-style Locale.

Parameters:

ParameterTypeDescription
localejava.util.Locale

getDateTimeFormat()

public System.Globalization.DateTimeFormatInfo getDateTimeFormat()

Gets .Net-style DateTimeFormatInfo

Returns: DateTimeFormatInfo

getLocale(System.Globalization.CultureInfo cultureInfo)

public Locale getLocale(System.Globalization.CultureInfo cultureInfo)

Gets java Locale from .Net-style CultureInfo

Parameters:

ParameterTypeDescription
cultureInfoCultureInfo

Returns: java.util.Locale