java.lang.Object | |
↳ | java.util.ResourceBundle.Control |
ResourceBundle.Control is a static utility class defines ResourceBundle load access methods, its default access order is as the same as before. However users can implement their own control.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
long | TTL_DONT_CACHE | a constant that indicates cache will not be used. | |||||||||
long | TTL_NO_EXPIRATION_CONTROL | a constant that indicates cache will not be expired. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
FORMAT_CLASS | a list defines java class format | ||||||||||
FORMAT_DEFAULT | a list defines default format | ||||||||||
FORMAT_PROPERTIES | a list defines property format |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
default constructor
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a list of candidate locales according to
baseName in
locale . | |||||||||||
Returns a control according to
formats . | |||||||||||
Returns the fallback locale for
baseName in locale . | |||||||||||
Returns a list of strings of formats according to
baseName . | |||||||||||
Returns a control according to
formats whose fallback
locale is null. | |||||||||||
Returns the time to live of the ResourceBundle
baseName in locale ,
default is TTL_NO_EXPIRATION_CONTROL. | |||||||||||
Returns true if the ResourceBundle needs to reload.
| |||||||||||
Returns a new ResourceBundle.
| |||||||||||
a utility method to answer the name of a resource bundle according to
the given base name and locale
| |||||||||||
a utility method to answer the name of a resource according to the
given bundleName and suffix
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
a constant that indicates cache will not be used.
a constant that indicates cache will not be expired.
a list defines property format
Returns a list of candidate locales according to baseName
in
locale
.
Returns a control according to formats
.
Returns the fallback locale for baseName
in locale
.
Returns a list of strings of formats according to baseName
.
Returns a control according to formats
whose fallback
locale is null.
Returns the time to live of the ResourceBundle baseName
in locale
,
default is TTL_NO_EXPIRATION_CONTROL.
Returns true if the ResourceBundle needs to reload.
baseName | the base name of the ResourceBundle |
---|---|
locale | the locale of the ResourceBundle |
format | the format to load |
loader | the ClassLoader to load resource |
bundle | the ResourceBundle |
loadTime | the expired time |
Returns a new ResourceBundle.
baseName | the base name to use |
---|---|
locale | the given locale |
format | the format, default is "java.class" or "java.properties" |
loader | the classloader to use |
reload | whether to reload the resource |
IllegalAccessException | if we can not access resources |
---|---|
InstantiationException | if we can not instantiate a resource class |
IOException | if other I/O exception happens |
a utility method to answer the name of a resource bundle according to the given base name and locale
baseName | the given base name |
---|---|
locale | the locale to use |
a utility method to answer the name of a resource according to the given bundleName and suffix
bundleName | the given bundle name |
---|---|
suffix | the suffix |