org.outerj.i18n
Class Icu4jI18nSupport

java.lang.Object
  extended byorg.outerj.i18n.I18nSupport
      extended byorg.outerj.i18n.Icu4jI18nSupport

public class Icu4jI18nSupport
extends I18nSupport

Implementation of IcuSupport that uses IBM's ICU4J package.


Constructor Summary
Icu4jI18nSupport()
           
 
Method Summary
 DecimalFormat getCurrencyFormat(java.util.Locale locale)
           
 DateFormat getDateFormat(int style, java.util.Locale locale)
           
 DateFormat getDateTimeFormat(int dateStyle, int timeStyle, java.util.Locale locale)
           
 DecimalFormat getIntegerFormat(java.util.Locale locale)
           
 DecimalFormat getNumberFormat(java.util.Locale locale)
           
 DecimalFormat getPercentFormat(java.util.Locale locale)
           
 DateFormat getTimeFormat(int style, java.util.Locale locale)
           
 java.math.BigDecimal power(java.math.BigDecimal value1, java.math.BigDecimal value2)
           
 java.math.BigDecimal remainder(java.math.BigDecimal value1, java.math.BigDecimal value2)
           
 
Methods inherited from class org.outerj.i18n.I18nSupport
getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Icu4jI18nSupport

public Icu4jI18nSupport()
Method Detail

power

public java.math.BigDecimal power(java.math.BigDecimal value1,
                                  java.math.BigDecimal value2)
Specified by:
power in class I18nSupport

remainder

public java.math.BigDecimal remainder(java.math.BigDecimal value1,
                                      java.math.BigDecimal value2)
Specified by:
remainder in class I18nSupport

getNumberFormat

public DecimalFormat getNumberFormat(java.util.Locale locale)
Specified by:
getNumberFormat in class I18nSupport

getIntegerFormat

public DecimalFormat getIntegerFormat(java.util.Locale locale)
Specified by:
getIntegerFormat in class I18nSupport

getCurrencyFormat

public DecimalFormat getCurrencyFormat(java.util.Locale locale)
Specified by:
getCurrencyFormat in class I18nSupport

getPercentFormat

public DecimalFormat getPercentFormat(java.util.Locale locale)
Specified by:
getPercentFormat in class I18nSupport

getDateFormat

public DateFormat getDateFormat(int style,
                                java.util.Locale locale)
Specified by:
getDateFormat in class I18nSupport

getTimeFormat

public DateFormat getTimeFormat(int style,
                                java.util.Locale locale)
Specified by:
getTimeFormat in class I18nSupport

getDateTimeFormat

public DateFormat getDateTimeFormat(int dateStyle,
                                    int timeStyle,
                                    java.util.Locale locale)
Specified by:
getDateTimeFormat in class I18nSupport