Package net.kyori.adventure.util
Class UTF8ResourceBundleControl
java.lang.Object
java.util.ResourceBundle.Control
net.kyori.adventure.util.UTF8ResourceBundleControl
Deprecated.
For removal since 4.26.0, resource bundles are UTF-8 by default in Java 9+
A
ResourceBundle.Control that enforces UTF-8 string encoding.
See this Stack Overflow post for more details.
- Since:
- 4.0.0
-
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull ResourceBundle.Controlget()Deprecated.For removal since 4.24.0, useutf8ResourceBundleControl()insteadnewBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload) Deprecated.static @NotNull ResourceBundle.ControlDeprecated.For removal since 4.26.0, resource bundles are UTF-8 by default in Java 9+Methods inherited from class java.util.ResourceBundle.Control
getCandidateLocales, getControl, getFallbackLocale, getFormats, getNoFallbackControl, getTimeToLive, needsReload, toBundleName, toResourceName
-
Constructor Details
-
UTF8ResourceBundleControl
public UTF8ResourceBundleControl()Deprecated.
-
-
Method Details
-
get
Deprecated.For removal since 4.24.0, useutf8ResourceBundleControl()insteadGets the shared instance.- Returns:
- a resource bundle control
- Since:
- 4.0.0
-
utf8ResourceBundleControl
Deprecated.For removal since 4.26.0, resource bundles are UTF-8 by default in Java 9+Gets the shared instance.- Returns:
- a resource bundle control
- Since:
- 4.24.0
-
newBundle
public ResourceBundle newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload) throws IllegalAccessException, InstantiationException, IOException Deprecated.- Overrides:
newBundlein classResourceBundle.Control- Throws:
IllegalAccessExceptionInstantiationExceptionIOException
-