public class Utf8ResourceBundleControl
extends java.util.ResourceBundle.Control
ResourceBundle.Control and
ResourceBundle.NoFallbackControl.NO_FALLBACK.
Due to the restrictive visibility and static methods, most of the content of this class has been copied from the superclass.
Only use this control if you are using Java 8!. Since code has been copied, this class may not be up-to-date to the latest JVMs.
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
noFallback
Whether to not fallback to the default locale.
|
| Constructor and Description |
|---|
Utf8ResourceBundleControl()
Creates a new bundle control reading a resource bundle with UTF-8 falling back to the default
locale of the JVM.
|
Utf8ResourceBundleControl(boolean noFallback)
Creates a new bundle control reading a resource bundle with UTF-8.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Locale |
getFallbackLocale(java.lang.String baseName,
java.util.Locale locale) |
java.util.ResourceBundle |
newBundle(java.lang.String baseName,
java.util.Locale locale,
java.lang.String format,
java.lang.ClassLoader loader,
boolean reload) |
protected final boolean noFallback
public Utf8ResourceBundleControl()
public Utf8ResourceBundleControl(boolean noFallback)
noFallback - Whether to not fallback to the default locale.public java.util.Locale getFallbackLocale(java.lang.String baseName,
java.util.Locale locale)
getFallbackLocale in class java.util.ResourceBundle.Controlpublic java.util.ResourceBundle newBundle(java.lang.String baseName,
java.util.Locale locale,
java.lang.String format,
java.lang.ClassLoader loader,
boolean reload)
throws java.lang.IllegalAccessException,
java.lang.InstantiationException,
java.io.IOException
newBundle in class java.util.ResourceBundle.Controljava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.io.IOException