comparison backend/src/main/java/org/dive4elements/river/importer/parsers/BedHeightParser.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 ea676691e533
children a0a0a7f912ab 0a5239a1e46e
comparison
equal deleted inserted replaced
8855:d7c005e12af0 8856:5e38e2924c07
82 82
83 public static final Pattern META_COMMENTS = 83 public static final Pattern META_COMMENTS =
84 Pattern.compile("^Weitere Bemerkungen: (.*).*"); 84 Pattern.compile("^Weitere Bemerkungen: (.*).*");
85 85
86 86
87 protected static NumberFormat nf = NumberFormat.getInstance(DEFAULT_LOCALE); 87 protected static NumberFormat nf = NumberFormat.getInstance(
88 DEFAULT_LOCALE);
88 89
89 90
90 protected List<ImportBedHeight> bedHeights; 91 protected List<ImportBedHeight> bedHeights;
91 92
92 93
109 110
110 111
111 public void parse(File file) throws IOException { 112 public void parse(File file) throws IOException {
112 log.info("Parsing bed height single file '" + file + "'"); 113 log.info("Parsing bed height single file '" + file + "'");
113 114
114 ImportBedHeight obj = newImportBedHeight(file.getName().replaceAll("\\.csv", "")); 115 ImportBedHeight obj = newImportBedHeight(
116 file.getName().replaceAll("\\.csv", ""));
115 117
116 kmExists.clear(); 118 kmExists.clear();
117 119
118 LineNumberReader in = null; 120 LineNumberReader in = null;
119 try { 121 try {
211 213
212 return false; 214 return false;
213 } 215 }
214 216
215 217
216 protected boolean handleMetaTimeInterval(ImportBedHeight obj, String line) { 218 protected boolean handleMetaTimeInterval(
219 ImportBedHeight obj,
220 String line
221 ) {
217 Matcher m = META_TIMEINTERVAL.matcher(line); 222 Matcher m = META_TIMEINTERVAL.matcher(line);
218 223
219 if (m.matches()) { 224 if (m.matches()) {
220 String lo = m.group(1); 225 String lo = m.group(1);
221 String up = m.group(2); 226 String up = m.group(2);

http://dive4elements.wald.intevation.org