Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/importer/parsers/BedHeightSingleParser.java @ 5490:b3dd14fc13a6
Parsers: do not call warnings error
author | Tom Gottfried <tom.gottfried@intevation.de> |
---|---|
date | Thu, 28 Mar 2013 10:06:44 +0100 |
parents | 84beabb3897c |
children |
comparison
equal
deleted
inserted
replaced
5489:2c6f4a3c5a25 | 5490:b3dd14fc13a6 |
---|---|
80 ); | 80 ); |
81 | 81 |
82 obj.addValue(value); | 82 obj.addValue(value); |
83 } | 83 } |
84 catch (ParseException e) { | 84 catch (ParseException e) { |
85 log.warn("BSP: Error while parsing data row.", e); | 85 log.warn("BSP: unparseable value in data row.", e); |
86 } | 86 } |
87 } | 87 } |
88 | 88 |
89 private BigDecimal parseBigDecimal(String value, String line) { | 89 private BigDecimal parseBigDecimal(String value, String line) { |
90 BigDecimal result = null; | 90 BigDecimal result = null; |
92 Double dValue = Double.valueOf(value.replace(",", ".")); | 92 Double dValue = Double.valueOf(value.replace(",", ".")); |
93 result = new BigDecimal(dValue.doubleValue()); | 93 result = new BigDecimal(dValue.doubleValue()); |
94 } | 94 } |
95 catch (NumberFormatException nfe) { | 95 catch (NumberFormatException nfe) { |
96 log.warn( | 96 log.warn( |
97 "Error parsing " + | 97 "Could not parse " + |
98 value + | 98 value + |
99 " in bed heigt single row: " | 99 " in bed heigt single row: " |
100 + line); | 100 + line); |
101 } | 101 } |
102 return result; | 102 return result; |