CurrentThreadSettings
Overview
CurrentThreadSettings is a class in Aspose.Words FOSS for Java.
This class helps to set thread-isolated Locale and Time Zone for a Aspose.Words application.
Edition status of its 6 listed members (a property and its accessor methods are listed separately, overloads once): 6 not yet exercised by a verified example.
This class declares 5 methods for CurrentThreadSettings objects in Java programs.
Available methods include: getLocale, getTimeZone, setLocale, setTimeZone.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: locale, timeZone.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
locale | Locale | Read/Write | Returns {@link Locale} that used by the current Aspose.Words thread. |
timeZone | TimeZone | Read/Write | Returns {@link TimeZone} that used by the current Aspose.Words thread. |
Methods
| Signature | Description |
|---|---|
getLocale() → Locale | Returns {@link Locale} that used by the current Aspose.Words thread. |
setLocale(localeName: String) | Sets {@link Locale} for the current Aspose.Words thread using locale name. |
setLocale(locale: Locale) | Sets {@link Locale} for the current Aspose.Words thread. |
getTimeZone() → TimeZone | Returns {@link TimeZone} that used by the current Aspose.Words thread. |
setTimeZone(timeZone: TimeZone) | Sets {@link TimeZone} for the current Aspose.Words thread. |