org.jfree.report.i18n
Class DefaultResourceBundleFactory
java.lang.Object
org.jfree.report.i18n.DefaultResourceBundleFactory
- ResourceBundleFactory, Serializable
A default implementation of the ResourceBundleFactory, that creates resource bundles
using the specified locale.
If not defined otherwise, this implementation uses
Locale.getDefault()
as
Locale.
ResourceBundle | getResourceBundle(Locale locale, String key) - Creates a resource bundle named by the given key and using the factory's defined
locale.
|
DefaultResourceBundleFactory
public DefaultResourceBundleFactory()
Creates a new DefaultResourceBundleFactory using the system's default locale as
factory locale.
getResourceBundle
public ResourceBundle getResourceBundle(Locale locale,
String key)
Creates a resource bundle named by the given key and using the factory's defined
locale.
- getResourceBundle in interface ResourceBundleFactory
key
- the name of the resourcebundle, never null.
- the created resource bundle
ResourceBundle.getBundle(String,Locale)