CurrentThreadSettings

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

NameTypeAccessDescription
localeLocaleRead/WriteReturns {@link Locale} that used by the current Aspose.Words thread.
timeZoneTimeZoneRead/WriteReturns {@link TimeZone} that used by the current Aspose.Words thread.

Methods

SignatureDescription
getLocale() → LocaleReturns {@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() → TimeZoneReturns {@link TimeZone} that used by the current Aspose.Words thread.
setTimeZone(timeZone: TimeZone)Sets {@link TimeZone} for the current Aspose.Words thread.

See Also