public class ECBHistoric90RateProvider extends AbstractRateProvider implements LoaderService.LoaderListener
ExchangeRateProvider that loads data from
the European Central Bank data feed (XML). It loads the current exchange
rates, as well as historic rates for the past 90 days. The provider loads all data up to 1999 into its
historic data cache.| Modifier and Type | Field and Description |
|---|---|
static javax.money.CurrencyUnit |
BASE_CURRENCY
Base currency of the loaded rates is always EUR.
|
LOGGER| Constructor and Description |
|---|
ECBHistoric90RateProvider()
Constructor, also loads initial data.
|
| Modifier and Type | Method and Description |
|---|---|
javax.money.convert.ExchangeRate |
getExchangeRate(javax.money.convert.ConversionQuery conversionQuery) |
void |
newDataLoaded(String data,
InputStream is)
(Re)load the given data feed.
|
divide, divide, getCurrencyConversion, getProviderContext, multiplypublic static final javax.money.CurrencyUnit BASE_CURRENCY
public ECBHistoric90RateProvider() throws MalformedURLException
MalformedURLExceptionpublic void newDataLoaded(String data, InputStream is)
newDataLoaded in interface LoaderService.LoaderListenerdata - the resource idis - the input stream for accessing the datapublic javax.money.convert.ExchangeRate getExchangeRate(javax.money.convert.ConversionQuery conversionQuery)
getExchangeRate in interface javax.money.convert.ExchangeRateProvidergetExchangeRate in class AbstractRateProviderCopyright © 2012-2014 JavaMoney. All Rights Reserved.