/* ********************************************************************** * Copyright (c) 2004-2007, International Business Machines * Corporation and others. All Rights Reserved. ********************************************************************** * Author: Alan Liu * Created: April 20, 2004 * Since: ICU 3.0 ********************************************************************** */ package com.ibm.icu.text; import com.ibm.icu.util.ULocale; /** * 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. * * @see com.ibm.icu.text.UFormat * @author Alan Liu * @stable ICU 3.0 */ public abstract class MeasureFormat extends UFormat { // Generated by serialver from JDK 1.4.1_01 static final long serialVersionUID = -7182021401701778240L; /** * @internal * @deprecated This API is ICU internal only. */ protected MeasureFormat() {} /** * Return a formatter for CurrencyAmount objects in the given * locale. * @param locale desired locale * @return a formatter object * @stable ICU 3.0 */ public static MeasureFormat getCurrencyFormat(ULocale locale) { return new CurrencyFormat(locale); } /** * Return a formatter for CurrencyAmount objects in the default * locale. * @return a formatter object * @stable ICU 3.0 */ public static MeasureFormat getCurrencyFormat() { return getCurrencyFormat(ULocale.getDefault()); } }