Package com.adobe.epubcheck.messages
Class LocaleHolder
- java.lang.Object
-
- com.adobe.epubcheck.messages.LocaleHolder
-
public final class LocaleHolder extends java.lang.ObjectHolds the "currently used"Localein 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 theMasterReportimplementation.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.ThreadLocal<java.util.Locale>current
-
Constructor Summary
Constructors Modifier Constructor Description privateLocaleHolder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Localeget()static voidset(java.util.Locale locale)
-