Class LocaleHolder

java.lang.Object
com.adobe.epubcheck.messages.LocaleHolder

public final class LocaleHolder extends Object
Holds the "currently used" Locale in a static thread-local variable. Pieces of code that set or change the locale used in the application runtime should update the static locale stored in this class. See for instance how it is done in the MasterReport implementation.
  • Field Details

  • Constructor Details

    • LocaleHolder

      private LocaleHolder()
  • Method Details

    • set

      public static void set(Locale locale)
    • get

      public static Locale get()