public class IMFRateProvider extends AbstractRateProvider implements LoaderService.LoaderListener
ExchangeRateProvider that loads the IMF conversion data.
In most cases this provider will provide chained rates, since IMF always is
converting from/to the IMF SDR currency unit.LOGGER| Constructor and Description |
|---|
IMFRateProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.money.convert.ExchangeRate |
getExchangeRateInternal(javax.money.CurrencyUnit base,
javax.money.CurrencyUnit term,
javax.money.convert.ConversionContext context) |
void |
newDataLoaded(String data,
InputStream is)
Callback called from the
LoaderService, when new data was
read for a given data item. |
divide, divide, getCurrencyConversion, getCurrencyConversion, getCurrencyConversion, getCurrencyConversion, getExchangeRate, getExchangeRate, getExchangeRate, getExchangeRate, getProviderContext, getReversed, isAvailable, isAvailable, isAvailable, isAvailable, multiplypublic IMFRateProvider() throws MalformedURLException
MalformedURLExceptionpublic void newDataLoaded(String data, InputStream is)
LoaderService.LoaderListenerLoaderService, when new data was
read for a given data item.newDataLoaded in interface LoaderService.LoaderListenerdata - the resource idis - the input stream for accessing the dataprotected javax.money.convert.ExchangeRate getExchangeRateInternal(javax.money.CurrencyUnit base, javax.money.CurrencyUnit term, javax.money.convert.ConversionContext context)
getExchangeRateInternal in class AbstractRateProviderCopyright © 2012-2014 JavaMoney. All Rights Reserved.