2 **********************************************************************
\r
3 * Copyright (c) 2004-2007, International Business Machines
\r
4 * Corporation and others. All Rights Reserved.
\r
5 **********************************************************************
\r
7 * Created: April 20, 2004
\r
9 **********************************************************************
\r
11 package com.ibm.icu.text;
\r
13 import com.ibm.icu.util.ULocale;
\r
16 * A formatter for Measure objects. This is an abstract base class.
\r
18 * <p>To format or parse a Measure object, first create a formatter
\r
19 * object using a MeasureFormat factory method. Then use that
\r
20 * object's format and parse methods.
\r
22 * @see com.ibm.icu.text.UFormat
\r
26 public abstract class MeasureFormat extends UFormat {
\r
27 // Generated by serialver from JDK 1.4.1_01
\r
28 static final long serialVersionUID = -7182021401701778240L;
\r
32 * @deprecated This API is ICU internal only.
\r
34 protected MeasureFormat() {}
\r
37 * Return a formatter for CurrencyAmount objects in the given
\r
39 * @param locale desired locale
\r
40 * @return a formatter object
\r
43 public static MeasureFormat getCurrencyFormat(ULocale locale) {
\r
44 return new CurrencyFormat(locale);
\r
48 * Return a formatter for CurrencyAmount objects in the default
\r
50 * @return a formatter object
\r
53 public static MeasureFormat getCurrencyFormat() {
\r
54 return getCurrencyFormat(ULocale.getDefault());
\r