public static class LocalizedMessage.Utf8Control extends ResourceBundle.Control
Custom ResourceBundle.Control implementation which allows explicitly read the properties files as UTF-8.
FORMAT_CLASS, FORMAT_DEFAULT, FORMAT_PROPERTIES, TTL_DONT_CACHE, TTL_NO_EXPIRATION_CONTROL
Constructor and Description |
---|
Utf8Control() |
Modifier and Type | Method and Description |
---|---|
ResourceBundle |
newBundle(String baseName,
Locale locale,
String format,
ClassLoader loader,
boolean reload) |
getCandidateLocales, getControl, getFallbackLocale, getFormats, getNoFallbackControl, getTimeToLive, needsReload, toBundleName, toResourceName
public Utf8Control()
public ResourceBundle newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload) throws IOException
newBundle
in class ResourceBundle.Control
IOException
Copyright © 2001–2020. All rights reserved.