java.lang.Object | |
↳ | org.springframework.core.io.support.LocalizedResourceHelper |
Helper class for loading a localized resource, specified through name, extension and current locale.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | DEFAULT_SEPARATOR | The default separator to use inbetween file name parts: an underscore |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new LocalizedResourceHelper with a DefaultResourceLoader.
| |||||||||||
Create a new LocalizedResourceHelper with the given ResourceLoader.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Find the most specific localized resource for the given name,
extension and locale:
The file will be searched with locations in the following order,
similar to
If none of the specific files can be found, a resource descriptor for the default location will be returned. | |||||||||||
Set the separator to use inbetween file name parts.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The default separator to use inbetween file name parts: an underscore
Create a new LocalizedResourceHelper with a DefaultResourceLoader.
Create a new LocalizedResourceHelper with the given ResourceLoader.
resourceLoader | the ResourceLoader to use |
---|
Find the most specific localized resource for the given name, extension and locale:
The file will be searched with locations in the following order,
similar to java.util.ResourceBundle
's search order:
If none of the specific files can be found, a resource descriptor for the default location will be returned.
name | the name of the file, without localization part nor extension |
---|---|
extension | the file extension (e.g. ".xls") |
locale | the current locale (may be null ) |
Set the separator to use inbetween file name parts. Default is an underscore ("_").