- java.lang.Object
-
- java.util.ResourceBundle.Control
-
- com.github.robtimus.filesystems.UTF8Control
-
public final class UTF8Control extends ResourceBundle.Control
A resource bundle control that uses UTF-8 instead of the default encoding when reading resources from properties files. It is thread-safe.- Author:
- Rob Spoor
- Since:
- 1.2
-
-
Field Summary
Fields Modifier and Type Field Description static UTF8Control
INSTANCE
The single instance.-
Fields inherited from class java.util.ResourceBundle.Control
FORMAT_CLASS, FORMAT_DEFAULT, FORMAT_PROPERTIES, TTL_DONT_CACHE, TTL_NO_EXPIRATION_CONTROL
-
-
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
-
-
-
-
Field Detail
-
INSTANCE
public static final UTF8Control INSTANCE
The single instance.
-
-
Method Detail
-
newBundle
public ResourceBundle newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload) throws IllegalAccessException, InstantiationException, IOException
- Overrides:
newBundle
in classResourceBundle.Control
- Throws:
IllegalAccessException
InstantiationException
IOException
-
-