Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/importer/parsers/OfficialLinesConfigParser.java @ 8856:5e38e2924c07 3.2.x
Fix code style.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 18 Jan 2018 20:12:01 +0100 |
parents | b966c67a476d |
children | 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8855:d7c005e12af0 | 8856:5e38e2924c07 |
---|---|
18 | 18 |
19 import org.apache.log4j.Logger; | 19 import org.apache.log4j.Logger; |
20 | 20 |
21 public class OfficialLinesConfigParser { | 21 public class OfficialLinesConfigParser { |
22 | 22 |
23 private static Logger log = Logger.getLogger(OfficialLinesConfigParser.class); | 23 private static Logger log = Logger.getLogger( |
24 OfficialLinesConfigParser.class); | |
24 | 25 |
25 public static final String ENCODING = "ISO-8859-1"; | 26 public static final String ENCODING = "ISO-8859-1"; |
26 | 27 |
27 private List<String> mainValueNames; | 28 private List<String> mainValueNames; |
28 | 29 |
44 new FileInputStream(file), ENCODING)); | 45 new FileInputStream(file), ENCODING)); |
45 | 46 |
46 try { | 47 try { |
47 String line; | 48 String line; |
48 while ((line = reader.readLine()) != null) { | 49 while ((line = reader.readLine()) != null) { |
49 if ((line = line.trim()).length() == 0 || line.charAt(0) == '*') { | 50 if ((line = line.trim()).length() == 0 |
51 || line.charAt(0) == '*') { | |
50 continue; | 52 continue; |
51 } | 53 } |
52 NameAndTimeInterval nat = NameAndTimeInterval.parseName(line); | 54 NameAndTimeInterval nat = NameAndTimeInterval.parseName(line); |
53 mainValueNames.add(nat.getName()); | 55 mainValueNames.add(nat.getName()); |
54 } | 56 } |