net.sf.mpxj.utility
Class MPXJNumberFormat
java.lang.Object
java.text.Format
java.text.NumberFormat
java.text.DecimalFormat
net.sf.mpxj.utility.MPXJNumberFormat
- All Implemented Interfaces:
- Serializable, Cloneable
public final class MPXJNumberFormat
- extends DecimalFormat
This class extends the functionality of the DecimalFormat class
for use within MPXJ.
- See Also:
- Serialized Form
| Methods inherited from class java.text.DecimalFormat |
applyLocalizedPattern, applyPattern, clone, equals, format, format, format, formatToCharacterIterator, getCurrency, getDecimalFormatSymbols, getGroupingSize, getMaximumFractionDigits, getMaximumIntegerDigits, getMinimumFractionDigits, getMinimumIntegerDigits, getMultiplier, getNegativePrefix, getNegativeSuffix, getPositivePrefix, getPositiveSuffix, getRoundingMode, hashCode, isDecimalSeparatorAlwaysShown, isParseBigDecimal, setCurrency, setDecimalFormatSymbols, setDecimalSeparatorAlwaysShown, setGroupingSize, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setMultiplier, setNegativePrefix, setNegativeSuffix, setParseBigDecimal, setPositivePrefix, setPositiveSuffix, setRoundingMode, toLocalizedPattern, toPattern |
| Methods inherited from class java.text.NumberFormat |
format, format, getAvailableLocales, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setGroupingUsed, setParseIntegerOnly |
MPXJNumberFormat
public MPXJNumberFormat()
applyPattern
public void applyPattern(String primaryPattern,
String[] alternativePatterns,
char decimalSeparator,
char groupingSeparator)
- This method is used to configure the primary and alternative
format patterns.
- Parameters:
primaryPattern - new format patternalternativePatterns - alternative format patternsdecimalSeparator - Locale specific decimal separator to replace placeholdergroupingSeparator - Locale specific grouping separator to replace placeholder
parse
public Number parse(String str,
ParsePosition parsePosition)
-
- Overrides:
parse in class DecimalFormat
Copyright © 2012. All Rights Reserved.