com.ibm.icu.text
Class MeasureFormat
java.lang.Object
java.text.Format
com.ibm.icu.text.UFormat
com.ibm.icu.text.MeasureFormat
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
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
,
Serialized Form
Nested classes/interfaces inherited from class java.text.Format |
java.text.Format.Field |
Constructor Summary |
protected |
MeasureFormat()
Deprecated. This API is ICU internal only. |
Methods inherited from class java.text.Format |
clone, format, format, formatToCharacterIterator, parseObject, parseObject |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MeasureFormat
protected MeasureFormat()
- Deprecated. This API is ICU internal only.
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
getCurrencyFormat
public static MeasureFormat getCurrencyFormat()
- Return a formatter for CurrencyAmount objects in the default
locale.
- Returns:
- a formatter object
Copyright (c) 2007 IBM Corporation and others.