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(java.lang.String data,
java.io.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 java.net.MalformedURLException
java.net.MalformedURLExceptionprotected javax.money.convert.ExchangeRate getExchangeRateInternal(javax.money.CurrencyUnit base,
javax.money.CurrencyUnit term,
javax.money.convert.ConversionContext context)
getExchangeRateInternal in class AbstractRateProviderpublic void newDataLoaded(java.lang.String data,
java.io.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 data