private void parseCurrencies ( List < String > content ) throws Exception { for ( String line : content ) { Matcher matcher = CURRENCY_REGEX_LINE . matcher ( line ) ; if ( matcher . matches ( ) ) { String currencyCode = matcher . group ( 1 ) ; int numericCode = Integer . parseInt ( matcher . group ( 2 ) ) ; int digits = Integer . parseInt ( matcher . group ( 3 ) ) ; registerCurrency ( currencyCode , numericCode , digits ) ; } } }
parse the currencies