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.| Modifier and Type | Field and Description |
|---|---|
protected CountDownLatch |
loadLock |
protected String |
loadState |
LOGGER| Constructor and Description |
|---|
IMFRateProvider() |
| Modifier and Type | Method and Description |
|---|---|
ExchangeRate |
getExchangeRate(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, formatLocalDate, getContext, getCurrencyConversion, multiplygetCurrencyConversion, getCurrencyConversion, getExchangeRate, getExchangeRate, getReversed, isAvailable, isAvailable, isAvailableprotected volatile CountDownLatch loadLock
public IMFRateProvider()
public 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 datapublic ExchangeRate getExchangeRate(ConversionQuery conversionQuery)
getExchangeRate in interface ExchangeRateProvidergetExchangeRate in class AbstractRateProviderCopyright © 2012–2020 JavaMoney. All rights reserved.