com.ibm.icu.text

Class MeasureFormat


public abstract class MeasureFormat
extends UFormat

A formatter for Measure objects. This is an abstract base class.

To format or parse a Measure object, first create a formatter object using a MeasureFormat factory method. Then use that object's format and parse methods.

Author:
Alan Liu
See Also:
UFormat

Constructor Summary

MeasureFormat()

Method Summary

static MeasureFormat
getCurrencyFormat()
Return a formatter for CurrencyAmount objects in the default locale.
static MeasureFormat
getCurrencyFormat(ULocale locale)
Return a formatter for CurrencyAmount objects in the given locale.

Methods inherited from class com.ibm.icu.text.UFormat

getLocale

Constructor Details

MeasureFormat

protected MeasureFormat()

Method Details

getCurrencyFormat

public static MeasureFormat getCurrencyFormat()
Return a formatter for CurrencyAmount objects in the default locale.
Returns:
a formatter object

getCurrencyFormat

public static MeasureFormat getCurrencyFormat(ULocale locale)
Return a formatter for CurrencyAmount objects in the given locale.
Parameters:
locale - desired locale
Returns:
a formatter object

Copyright (c) 2006 IBM Corporation and others.