Package org.orekit.rugged.errors
Class RuggedMessages.UTF8Control
- java.lang.Object
-
- java.util.ResourceBundle.Control
-
- org.orekit.rugged.errors.RuggedMessages.UTF8Control
-
- Enclosing class:
- RuggedMessages
public static class RuggedMessages.UTF8Control extends ResourceBundle.Control
Control class loading properties in UTF-8 encoding.This class has been very slightly adapted from BalusC answer to question: How to use UTF-8 in resource properties with ResourceBundle.
-
-
Field Summary
-
Fields inherited from class java.util.ResourceBundle.Control
FORMAT_CLASS, FORMAT_DEFAULT, FORMAT_PROPERTIES, TTL_DONT_CACHE, TTL_NO_EXPIRATION_CONTROL
-
-
Constructor Summary
Constructors Constructor Description UTF8Control()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceBundle
newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload)
-
Methods inherited from class java.util.ResourceBundle.Control
getCandidateLocales, getControl, getFallbackLocale, getFormats, getNoFallbackControl, getTimeToLive, needsReload, toBundleName, toResourceName
-
-
-
-
Method Detail
-
newBundle
public ResourceBundle newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload) throws IOException
- Overrides:
newBundle
in classResourceBundle.Control
- Throws:
IOException
-
-