类 ResourceBundleControl
- java.lang.Object
-
- java.util.ResourceBundle.Control
-
- cn.t.util.internationalize.ResourceBundleControl
-
public class ResourceBundleControl extends ResourceBundle.Control
-
-
字段概要
-
从类继承的字段 java.util.ResourceBundle.Control
FORMAT_CLASS, FORMAT_DEFAULT, FORMAT_PROPERTIES, TTL_DONT_CACHE, TTL_NO_EXPIRATION_CONTROL
-
-
构造器概要
构造器 构造器 说明 ResourceBundleControl()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 List<Locale>getCandidateLocales(String baseName, Locale locale)LocalegetFallbackLocale(String baseName, Locale locale)List<String>getFormats(String baseName)longgetTimeToLive(String baseName, Locale locale)booleanneedsReload(String baseName, Locale locale, String format, ClassLoader loader, ResourceBundle bundle, long loadTime)ResourceBundlenewBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload)StringtoBundleName(String baseName, Locale locale)-
从类继承的方法 java.util.ResourceBundle.Control
getControl, getNoFallbackControl, toResourceName
-
-
-
-
方法详细资料
-
getFormats
public List<String> getFormats(String baseName)
- 覆盖:
getFormats在类中ResourceBundle.Control
-
newBundle
public ResourceBundle newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload) throws IOException
- 覆盖:
newBundle在类中ResourceBundle.Control- 抛出:
IOException
-
getTimeToLive
public long getTimeToLive(String baseName, Locale locale)
- 覆盖:
getTimeToLive在类中ResourceBundle.Control
-
needsReload
public boolean needsReload(String baseName, Locale locale, String format, ClassLoader loader, ResourceBundle bundle, long loadTime)
- 覆盖:
needsReload在类中ResourceBundle.Control
-
toBundleName
public String toBundleName(String baseName, Locale locale)
- 覆盖:
toBundleName在类中ResourceBundle.Control
-
-