LocaleOptions instead of CurrentThreadSettings.@Deprecated public final class CurrentThreadSettings extends Object
Auxiliary class that allows to define default Locale for current thread
| Modifier and Type | Method and Description |
|---|---|
static Locale |
getLocale()
Deprecated.
Please use
LocaleOptions.getLocale() instead of CurrentThreadSettings.getLocale() |
static void |
setLocale(Locale locale)
Deprecated.
Please use
LocaleOptions.setLocale(Locale) instead of CurrentThreadSettings.setLocale(Locale locale) |
static void |
setLocale(String localeName)
Deprecated.
Please use
LocaleOptions.setLocale(Locale) instead of CurrentThreadSettings.setLocale(String localeName) |
public static Locale getLocale()
LocaleOptions.getLocale() instead of CurrentThreadSettings.getLocale()Returns default Locale for current thread.
public static void setLocale(String localeName)
LocaleOptions.setLocale(Locale) instead of CurrentThreadSettings.setLocale(String localeName)Sets default Locale for current thread.
localeName - the default Locale for current thread.FrameworkException - if locale with name localeName does not supported.public static void setLocale(Locale locale)
LocaleOptions.setLocale(Locale) instead of CurrentThreadSettings.setLocale(Locale locale)Sets default Locale for current thread.
locale - the default Locale for current thread.FrameworkException - if locale does not supported.Copyright (c) 2008-2022 Aspose Pty Ltd. All Rights Reserved.