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, multiply
public IMFRateProvider() throws java.net.MalformedURLException
java.net.MalformedURLException
protected javax.money.convert.ExchangeRate getExchangeRateInternal(javax.money.CurrencyUnit base, javax.money.CurrencyUnit term, javax.money.convert.ConversionContext context)
getExchangeRateInternal
in class AbstractRateProvider
public void newDataLoaded(java.lang.String data, java.io.InputStream is)
LoaderService.LoaderListener
LoaderService
, when new data was
read for a given data item.newDataLoaded
in interface LoaderService.LoaderListener
data
- the resource idis
- the input stream for accessing the data