Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/importer/parsers/OfficialLinesConfigParser.java @ 6346:b966c67a476d
Backend: Only use name of official config line as name of main value.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 14 Jun 2013 18:15:49 +0200 |
parents | b2a470c148a7 |
children | 5e38e2924c07 |
comparison
equal
deleted
inserted
replaced
6345:0f7e9a4f1c5a | 6346:b966c67a476d |
---|---|
47 String line; | 47 String line; |
48 while ((line = reader.readLine()) != null) { | 48 while ((line = reader.readLine()) != null) { |
49 if ((line = line.trim()).length() == 0 || line.charAt(0) == '*') { | 49 if ((line = line.trim()).length() == 0 || line.charAt(0) == '*') { |
50 continue; | 50 continue; |
51 } | 51 } |
52 mainValueNames.add(line); | 52 NameAndTimeInterval nat = NameAndTimeInterval.parseName(line); |
53 mainValueNames.add(nat.getName()); | |
53 } | 54 } |
54 } | 55 } |
55 finally { | 56 finally { |
56 reader.close(); | 57 reader.close(); |
57 } | 58 } |