public class

MessageFormat

extends ExtendedMessageFormat
java.lang.Object
   ↳ java.text.Format
     ↳ java.text.MessageFormat
       ↳ humanize.text.ExtendedMessageFormat
         ↳ humanize.spi.MessageFormat

Class Overview

ExtendedMessageFormat wrapper.

Summary

Public Constructors
MessageFormat(String pattern)
MessageFormat(String pattern, Locale locale)
MessageFormat(String pattern, Locale locale, Map<String, ? extends FormatFactory> registry)
MessageFormat(String pattern, Map<String, ? extends FormatFactory> registry)
Public Methods
String render(Object... arguments)
Formats the current pattern with the given arguments.
StringBuffer render(StringBuffer buffer, Object... arguments)
Formats the current pattern with the given arguments.
[Expand]
Inherited Methods
From class humanize.text.ExtendedMessageFormat
From class java.text.MessageFormat
From class java.text.Format
From class java.lang.Object

Public Constructors

public MessageFormat (String pattern)

public MessageFormat (String pattern, Locale locale)

public MessageFormat (String pattern, Locale locale, Map<String, ? extends FormatFactory> registry)

public MessageFormat (String pattern, Map<String, ? extends FormatFactory> registry)

Public Methods

public String render (Object... arguments)

Formats the current pattern with the given arguments.

Parameters
arguments The formatting arguments
Returns
  • Formatted message

public StringBuffer render (StringBuffer buffer, Object... arguments)

Formats the current pattern with the given arguments.

Parameters
buffer The StringBuffer
arguments The formatting arguments
Returns
  • StringBuffer with the formatted message