private static MeasureFormatData loadLocaleData ( ULocale locale ) { ICUResourceBundle resource = ( ICUResourceBundle ) UResourceBundle . getBundleInstance ( ICUData . ICU_UNIT_BASE_NAME , locale ) ; MeasureFormatData cacheData = new MeasureFormatData ( ) ; UnitDataSink sink = new UnitDataSink ( cacheData ) ; resource . getAllItemsWithFallback ( "" , sink ) ; return cacheData ; }
Returns formatting data for all MeasureUnits except for currency ones .