This reads currencies from various files.
Firstly it reads the mandatory resource named /org/joda/money/CurencyData.csv.
Then it reads the mandatory resource named /org/joda/money/CountryData.csv.
These files are located in the joda-money jar file.
Then it reads optional resources named META-INF/org/joda/money/CurencyDataExtension.csv.
Then it reads optional resources named META-INF/org/joda/money/CountryDataExtension.csv.
These will be read using ClassLoader#getResources(String).
These files may augment or replace data from the first two files.
| Modifier and Type | Field and Description |
|---|---|
| private static final Pattern | COUNTRY_REGEX_LINE
Regex format for the country csv line. |
| private static final Pattern | CURRENCY_REGEX_LINE
Regex format for the money csv line. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private List | |
| private List | |
| private void | |
| private void | |
| protected void | registerCurrencies()
Implements abstract org. Registers all the currencies known by this provider. |
| COUNTRY_REGEX_LINE | back to summary |
|---|---|
| private static final Pattern COUNTRY_REGEX_LINE Regex format for the country csv line. | |
| CURRENCY_REGEX_LINE | back to summary |
|---|---|
| private static final Pattern CURRENCY_REGEX_LINE Regex format for the money csv line. | |
| DefaultCurrencyUnitDataProvider | back to summary |
|---|---|
| pack-priv DefaultCurrencyUnitDataProvider() | |
| loadFromFile | back to summary |
|---|---|
| private List | |
| loadFromFiles | back to summary |
|---|---|
| private List | |
| parseCountries | back to summary |
|---|---|
| private void parseCountries(List<String> content) throws Exception | |
| parseCurrencies | back to summary |
|---|---|
| private void parseCurrencies(List<String> content) throws Exception | |
| registerCurrencies | back to summary |
|---|---|
| protected void registerCurrencies() throws Exception Implements abstract org. Registers all the currencies known by this provider. | |