org.outerj.i18n
Class I18nSupport
java.lang.Object
org.outerj.i18n.I18nSupport
- Direct Known Subclasses:
- Icu4jI18nSupport, JdkI18nSupport
- public abstract class I18nSupport
- extends java.lang.Object
This class supports operations with BigDecimals, NumberFormats, ...
that are not well-supported by the JDK (1.4). It uses the alternative IBM ICU4J
package instead, but only when it's available on the classpath.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
I18nSupport
public I18nSupport()
getInstance
public static I18nSupport getInstance()
power
public abstract java.math.BigDecimal power(java.math.BigDecimal value1,
java.math.BigDecimal value2)
remainder
public abstract java.math.BigDecimal remainder(java.math.BigDecimal value1,
java.math.BigDecimal value2)
getNumberFormat
public abstract DecimalFormat getNumberFormat(java.util.Locale locale)
getIntegerFormat
public abstract DecimalFormat getIntegerFormat(java.util.Locale locale)
getCurrencyFormat
public abstract DecimalFormat getCurrencyFormat(java.util.Locale locale)
getPercentFormat
public abstract DecimalFormat getPercentFormat(java.util.Locale locale)
getDateFormat
public abstract DateFormat getDateFormat(int style,
java.util.Locale locale)
getTimeFormat
public abstract DateFormat getTimeFormat(int style,
java.util.Locale locale)
getDateTimeFormat
public abstract DateFormat getDateTimeFormat(int dateStyle,
int timeStyle,
java.util.Locale locale)