Packages

 

com.aspose.imaging

Interfaces

Classes

Exceptions

com.aspose.imaging

Class CurrentThreadSettings


  • Deprecated. 
    Please use LocaleOptions instead of CurrentThreadSettings.

    @Deprecated
    public final class CurrentThreadSettings
    extends Object

    Auxiliary class that allows to define default Locale for current thread

    • Method Detail

      • getLocale

        public static Locale getLocale()
        Deprecated. Please use LocaleOptions.getLocale() instead of CurrentThreadSettings.getLocale()

        Returns default Locale for current thread.

        Returns:
        the default Locale for current thread.
      • setLocale

        public static void setLocale(String localeName)
        Deprecated. Please use LocaleOptions.setLocale(Locale) instead of CurrentThreadSettings.setLocale(String localeName)

        Sets default Locale for current thread.

        Parameters:
        localeName - the default Locale for current thread.
        Throws:
        FrameworkException - if locale with name localeName does not supported.
      • setLocale

        public static void setLocale(Locale locale)
        Deprecated. Please use LocaleOptions.setLocale(Locale) instead of CurrentThreadSettings.setLocale(Locale locale)

        Sets default Locale for current thread.

        Parameters:
        locale - the default Locale for current thread.
        Throws:
        FrameworkException - if locale does not supported.