Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/importer/parsers/WaterlevelDifferencesParser.java @ 5230:fb7d43ba8147
WaterlevelDifferencesParser: Cosmetics and fix misleading debug output.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Mon, 11 Mar 2013 15:08:43 +0100 |
parents | 016616df35dc |
children | 37ff7c030ec9 |
comparison
equal
deleted
inserted
replaced
5229:016616df35dc | 5230:fb7d43ba8147 |
---|---|
32 private static final NumberFormat nf = | 32 private static final NumberFormat nf = |
33 NumberFormat.getInstance(DEFAULT_LOCALE); | 33 NumberFormat.getInstance(DEFAULT_LOCALE); |
34 | 34 |
35 public static final Pattern META_UNIT = | 35 public static final Pattern META_UNIT = |
36 Pattern.compile("^Einheit: \\[(.*)\\].*"); | 36 Pattern.compile("^Einheit: \\[(.*)\\].*"); |
37 | |
38 | 37 |
39 private List<ImportWaterlevelDifference> differences; | 38 private List<ImportWaterlevelDifference> differences; |
40 | 39 |
41 private ImportWaterlevelDifferenceColumn[] columns; | 40 private ImportWaterlevelDifferenceColumn[] columns; |
42 | 41 |
179 | 178 |
180 private void handleDataLine(String line) { | 179 private void handleDataLine(String line) { |
181 String[] cols = line.split(SEPERATOR_CHAR); | 180 String[] cols = line.split(SEPERATOR_CHAR); |
182 | 181 |
183 if (cols == null || cols.length < 2) { | 182 if (cols == null || cols.length < 2) { |
184 log.warn("skip invalid waterlevel line: '" + line + "'"); | 183 log.warn("skip invalid waterlevel-diff line: '" + line + "'"); |
185 return; | 184 return; |
186 } | 185 } |
187 | 186 |
188 try { | 187 try { |
189 Double station = nf.parse(cols[0]).doubleValue(); | 188 Double station = nf.parse(cols[0]).doubleValue(); |