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