1 /*
2  *******************************************************************************
3  * Copyright (C) 2008-2012, International Business Machines Corporation and    *
4  * others. All Rights Reserved.                                                *
5  *******************************************************************************
6  */
7 package com.ibm.icu.impl.javaspi.text;
8 
9 import java.text.DecimalFormatSymbols;
10 import java.text.spi.DecimalFormatSymbolsProvider;
11 import java.util.Locale;
12 
13 import com.ibm.icu.impl.javaspi.ICULocaleServiceProvider;
14 import com.ibm.icu.impl.jdkadapter.DecimalFormatSymbolsICU;
15 
16 public class DecimalFormatSymbolsProviderICU extends
17         DecimalFormatSymbolsProvider {
18 
19     @Override
getInstance(Locale locale)20     public DecimalFormatSymbols getInstance(Locale locale) {
21         com.ibm.icu.text.DecimalFormatSymbols icuDecfs = com.ibm.icu.text.DecimalFormatSymbols.getInstance(
22                 ICULocaleServiceProvider.toULocaleNoSpecialVariant(locale));
23         return DecimalFormatSymbolsICU.wrap(icuDecfs);
24     }
25 
26     @Override
getAvailableLocales()27     public Locale[] getAvailableLocales() {
28         return ICULocaleServiceProvider.getAvailableLocales();
29     }
30 
31 }
32