Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/importer/parsers/BedHeightSingleParser.java @ 7354:809e76b7fe38
BedHeightSingleParser: do not omit lines if last column is empty.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 16 Oct 2013 14:40:19 +0200 |
parents | 6c003cbb27f1 |
children | d12478cc5bb0 |
comparison
equal
deleted
inserted
replaced
7352:c6825778de1f | 7354:809e76b7fe38 |
---|---|
37 * Create ImportBedHeightSingleValue from a line of csv file, add | 37 * Create ImportBedHeightSingleValue from a line of csv file, add |
38 * it to the ImportBedHeight. | 38 * it to the ImportBedHeight. |
39 */ | 39 */ |
40 @Override | 40 @Override |
41 protected void handleDataLine(ImportBedHeight obj, String line) { | 41 protected void handleDataLine(ImportBedHeight obj, String line) { |
42 String[] values = line.split(SEPERATOR_CHAR); | 42 String[] values = line.split(SEPERATOR_CHAR, -1); |
43 | 43 |
44 if (values == null || (values.length != 1 && values.length < 6)) { | 44 if (values == null) { |
45 //log.warn("BSP: Error while parsing data line: '" + line + "'"); | 45 log.warn("BSP: Error while parsing data line: '" + line + "'"); |
46 return; | 46 return; |
47 } | 47 } |
48 | 48 |
49 Double km; | 49 Double km; |
50 | 50 |