CurrentThreadSettings
Inheritance: java.lang.Object
public class CurrentThreadSettings
This class helps to set thread-isolated Locale and Time Zone for a Aspose.Words application.
Methods
Method | Description |
---|---|
getLocale() | Returns java.util.Locale that used by the current Aspose.Words thread. |
getTimeZone() | Returns java.util.TimeZone that used by the current Aspose.Words thread. |
setLocale(String localeName) | Sets java.util.Locale for the current Aspose.Words thread using locale name. |
setLocale(Locale locale) | Sets java.util.Locale for the current Aspose.Words thread. |
setTimeZone(TimeZone timeZone) | Sets java.util.TimeZone for the current Aspose.Words thread. |
getLocale()
public static Locale getLocale()
Returns java.util.Locale that used by the current Aspose.Words thread.
Returns: java.util.Locale
getTimeZone()
public static TimeZone getTimeZone()
Returns java.util.TimeZone that used by the current Aspose.Words thread.
Returns: java.util.TimeZone
setLocale(String localeName)
public static void setLocale(String localeName)
Sets java.util.Locale for the current Aspose.Words thread using locale name.
Parameters:
Parameter | Type | Description |
---|---|---|
localeName | java.lang.String |
setLocale(Locale locale)
public static void setLocale(Locale locale)
Sets java.util.Locale for the current Aspose.Words thread.
Parameters:
Parameter | Type | Description |
---|---|---|
locale | java.util.Locale |
setTimeZone(TimeZone timeZone)
public static void setTimeZone(TimeZone timeZone)
Sets java.util.TimeZone for the current Aspose.Words thread.
Parameters:
Parameter | Type | Description |
---|---|---|
timeZone | java.util.TimeZone |