Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/importer/parsers/StaFileParser.java @ 5954:f944cc25484c
STA parser: Spaces after gauge name given in spec are sometimes used for gauge name, so parse them
author | Tom Gottfried <tom.gottfried@intevation.de> |
---|---|
date | Wed, 08 May 2013 18:21:27 +0200 |
parents | 24f9c5146384 |
children | b819209732a0 |
comparison
equal
deleted
inserted
replaced
5932:c7951390fd58 | 5954:f944cc25484c |
---|---|
111 if (line.length() < 37) { | 111 if (line.length() < 37) { |
112 log.warn("First line in STA file is too short."); | 112 log.warn("First line in STA file is too short."); |
113 return false; | 113 return false; |
114 } | 114 } |
115 | 115 |
116 String gaugeName = line.substring(16, 28).trim(); | 116 String gaugeName = line.substring(16, 35).trim(); |
117 | 117 |
118 Long gaugeNumber = null; | 118 Long gaugeNumber = null; |
119 | 119 |
120 if (!NOT_PARSE_GAUGE_NUMBERS) { | 120 if (!NOT_PARSE_GAUGE_NUMBERS) { |
121 String gaugeNumberString = line.substring(8, 16).trim(); | 121 String gaugeNumberString = line.substring(8, 16).trim(); |