java.lang.Object
io.sf.jclf.util.locale.ResourceFactory
io.sf.jclf.util.locale.LoaderResourceFactory
Factory of localized objects through class loader.
Loads objects according to basename, extension and locale name.
For convenience, it adds a public method to load ResourceBundle objects.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionloadBundle
(String baseclass, String localeName) loadLocalFile
(String baseName, String ext, String localeName) Load a resource file.Methods inherited from class io.sf.jclf.util.locale.ResourceFactory
getLastModified, instantiateObject, loadLocalObject, readURL, setLastModified
-
Constructor Details
-
LoaderResourceFactory
-
LoaderResourceFactory
public LoaderResourceFactory()
-
-
Method Details
-
loadBundle
-
loadLocalFile
Description copied from class:ResourceFactory
Load a resource file.- Specified by:
loadLocalFile
in classResourceFactory
- Parameters:
baseName
- the basename of the pathext
- the extension.localeName
- the name of the locale, eg. es_ES.- Returns:
- the input stream with the file contents.
- Throws:
IOException
- if the file cannot be loaded.
-