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 |
---|---|
javax.money.convert.ExchangeRate |
getExchangeRate(javax.money.convert.ConversionQuery conversionQuery) |
void |
newDataLoaded(String data,
InputStream is)
Callback called from the
LoaderService , when new data was
read for a given data item. |
divide, divide, getContext, getCurrencyConversion, multiply
public IMFRateProvider() throws MalformedURLException
MalformedURLException
public void newDataLoaded(String data, 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 datapublic javax.money.convert.ExchangeRate getExchangeRate(javax.money.convert.ConversionQuery conversionQuery)
getExchangeRate
in interface javax.money.convert.ExchangeRateProvider
getExchangeRate
in class AbstractRateProvider
Copyright © 2012-2015 JavaMoney. All Rights Reserved.