Format:
<gesmes:Envelope
xmlns:gesmes="http://www.gesmes.org/xml/2002-08-01"
xmlns="http://www.ecb.int/vocabulary/2002-08-01/eurofxref">
<gesmes:subject>Reference rates</gesmes:subject> <gesmes:Sender>
<gesmes:name>European Central Bank</gesmes:name> </gesmes:Sender> <Cube>
<Cube time="2013-02-21">...</Cube> <Cube time="2013-02-20">...</Cube>
<Cube time="2013-02-19"> <Cube currency="USD" rate="1.3349"/> <Cube
currency="JPY" rate="124.81"/> <Cube currency="BGN" rate="1.9558"/> <Cube
currency="CZK" rate="25.434"/> <Cube currency="DKK" rate="7.4599"/> <Cube
currency="GBP" rate="0.8631"/> <Cube currency="HUF" rate="290.79"/> <Cube
currency="LTL" rate="3.4528"/> ...
| Modifier and Type | Field and Description |
|---|---|
| private final ProviderContext | |
| private final Map | |
| private LocalDate | localDate
Current timestamp for the given section. |
| Access | Constructor and Description |
|---|---|
| pack-priv | ECBRateReadingHandler(Map<LocalDate, Map<String, ExchangeRate>>
the rates, not null. historicRates, ProviderContext the context, not null. context)Creates a new handler. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | addRate(CurrencyUnit
the term (target) currency, mapped from EUR. term, LocalDate localDate, Number The rate. rate)Method to add a currency exchange rate. |
| public void | startElement(String uri, String localName, String qName, Attributes attributes)
Overrides org. Implements org. Receive notification of the start of an element. |
| context | back to summary |
|---|---|
| private final ProviderContext context | |
| historicRates | back to summary |
|---|---|
| private final Map<LocalDate, Map<String, ExchangeRate>> historicRates | |
| localDate | back to summary |
|---|---|
| private LocalDate localDate Current timestamp for the given section. | |
| ECBRateReadingHandler | back to summary |
|---|---|
| pack-priv ECBRateReadingHandler(Map<LocalDate, Map<String, ExchangeRate>> historicRates, ProviderContext context) Creates a new handler.
| |
| addRate | back to summary |
|---|---|
| pack-priv void addRate(CurrencyUnit term, LocalDate localDate, Number rate) Method to add a currency exchange rate.
| |
| startElement | back to summary |
|---|---|
| public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException Overrides org. Implements org. Doc from org. Receive notification of the start of an element. By default, do nothing. Application writers may override this method in a subclass to take specific actions at the start of each element (such as allocating a new tree node or writing output to a file).
| |