Package net.kyori.adventure.util
Class UTF8ResourceBundleControl
java.lang.Object
java.util.ResourceBundle.Control
net.kyori.adventure.util.UTF8ResourceBundleControl
public final class UTF8ResourceBundleControl extends ResourceBundle.Control
A 
ResourceBundle.Control that enforces UTF-8 string encoding.
 See https://stackoverflow.com/a/4660195 for more details.
- Since:
- 4.0.0
- 
Field SummaryFields inherited from class java.util.ResourceBundle.ControlFORMAT_CLASS, FORMAT_DEFAULT, FORMAT_PROPERTIES, TTL_DONT_CACHE, TTL_NO_EXPIRATION_CONTROL
- 
Constructor SummaryConstructors Constructor Description UTF8ResourceBundleControl()
- 
Method SummaryModifier and Type Method Description static @NonNull ResourceBundle.Controlget()Gets the shared instance.ResourceBundlenewBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload)Methods inherited from class java.util.ResourceBundle.ControlgetCandidateLocales, getControl, getFallbackLocale, getFormats, getNoFallbackControl, getTimeToLive, needsReload, toBundleName, toResourceName
- 
Constructor Details- 
UTF8ResourceBundleControlpublic UTF8ResourceBundleControl()
 
- 
- 
Method Details- 
getGets the shared instance.- Returns:
- a resource bundle control
- Since:
- 4.0.0
 
- 
newBundlepublic ResourceBundle newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload) throws IllegalAccessException, InstantiationException, IOException- Overrides:
- newBundlein class- ResourceBundle.Control
- Throws:
- IllegalAccessException
- InstantiationException
- IOException
 
 
-