java.text

Class MessageFormat

public class MessageFormat extends Format

Nested Class Summary
static classMessageFormat.Field
Constructor Summary
MessageFormat(String pattern)
MessageFormat(String pattern, Locale locale)
Method Summary
voidapplyPattern(String pattern)
Objectclone()
booleanequals(Object obj)
StringBufferformat(Object[] arguments, StringBuffer result, FieldPosition pos)
static Stringformat(String pattern, Object... arguments)
StringBufferformat(Object arguments, StringBuffer result, FieldPosition pos)
AttributedCharacterIteratorformatToCharacterIterator(Object arguments)
Format[]getFormats()
Format[]getFormatsByArgumentIndex()
LocalegetLocale()
inthashCode()
Object[]parse(String source, ParsePosition pos)
Object[]parse(String source)
ObjectparseObject(String source, ParsePosition pos)
voidsetFormat(int formatElementIndex, Format newFormat)
voidsetFormatByArgumentIndex(int argumentIndex, Format newFormat)
voidsetFormats(Format[] newFormats)
voidsetFormatsByArgumentIndex(Format[] newFormats)
voidsetLocale(Locale locale)
StringtoPattern()

Constructor Detail

MessageFormat

public MessageFormat(String pattern)

MessageFormat

public MessageFormat(String pattern, Locale locale)

Method Detail

applyPattern

public void applyPattern(String pattern)

clone

public Object clone()

equals

public boolean equals(Object obj)

format

public final StringBuffer format(Object[] arguments, StringBuffer result, FieldPosition pos)

format

public static String format(String pattern, Object... arguments)

format

public final StringBuffer format(Object arguments, StringBuffer result, FieldPosition pos)

formatToCharacterIterator

public AttributedCharacterIterator formatToCharacterIterator(Object arguments)

getFormats

public Format[] getFormats()

getFormatsByArgumentIndex

public Format[] getFormatsByArgumentIndex()

getLocale

public Locale getLocale()

hashCode

public int hashCode()

parse

public Object[] parse(String source, ParsePosition pos)

parse

public Object[] parse(String source)

parseObject

public Object parseObject(String source, ParsePosition pos)

setFormat

public void setFormat(int formatElementIndex, Format newFormat)

setFormatByArgumentIndex

public void setFormatByArgumentIndex(int argumentIndex, Format newFormat)

setFormats

public void setFormats(Format[] newFormats)

setFormatsByArgumentIndex

public void setFormatsByArgumentIndex(Format[] newFormats)

setLocale

public void setLocale(Locale locale)

toPattern

public String toPattern()