public static class OrekitMessages.UTF8Control extends ResourceBundle.Control
这个类是从BalusC对问题的回答中稍作调整而来:如何在ResourceBundle中使用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()
这个构造函数并非必需,但它可以防止在JDK 18及更高版本中出现不必要的javadoc警告。
public ResourceBundle newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload) throws IllegalAccessException, InstantiationException, IOException
Copyright © 2002-2023 CS GROUP. All rights reserved.