Code example for MessageFormat

Methods: format, setLocale

0
	 * @return a message string 
	 */ 
	private static String buildMessage(final String pattern, final Object[] arguments,
			final Locale locale) {
		// do it the hard way, for Java 1.3. compatibility 
		final MessageFormat mf = new MessageFormat(translate(pattern, locale));
		mf.setLocale(locale);
		return mf.format(arguments);
	} 
 
	/** 
	 * Constructs a new <code>MathException</code> with no detail message. 
	 */ 
	public MathException() { 
		super(); 
		this.pattern = null;
		this.arguments = new Object[0];
		this.rootCause = null;
	} 
 
	/**