Package net.kyori.adventure.util
Class UTF8ResourceBundleControl
- java.lang.Object
-
- java.util.ResourceBundle.Control
-
- net.kyori.adventure.util.UTF8ResourceBundleControl
-
public final class UTF8ResourceBundleControl extends java.util.ResourceBundle.Control
AResourceBundle.Control
that enforces UTF-8 string encoding.See https://stackoverflow.com/a/4660195 for more details.
- Since:
- 4.0.0
-
-
Constructor Summary
Constructors Constructor Description UTF8ResourceBundleControl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @NotNull java.util.ResourceBundle.Control
get()
Gets the shared instance.java.util.ResourceBundle
newBundle(java.lang.String baseName, java.util.Locale locale, java.lang.String format, java.lang.ClassLoader loader, boolean reload)
-
-
-
Method Detail
-
get
public static @NotNull java.util.ResourceBundle.Control get()
Gets the shared instance.- Returns:
- a resource bundle control
- Since:
- 4.0.0
-
newBundle
public 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
- Overrides:
newBundle
in classjava.util.ResourceBundle.Control
- Throws:
java.lang.IllegalAccessException
java.lang.InstantiationException
java.io.IOException
-
-