public class MessageFormatter extends Object
Constructor and Description |
---|
MessageFormatter() |
public String formatMessage(Locale locale, String key, Object[] args, String[] bundleNames)
locale
- the required localekey
- the message keyargs
- message parameter valuesNullPointerException
- if key is nullMissingResourceException
- if a resource bundle or the specified key cannot be foundClassCastException
- if the object found for the specified key is not a stringIllegalArgumentException
- if the args don't match the message.Copyright © 2005-2013 Apache Software Foundation. All Rights Reserved.