comparison flys-backend/src/main/java/de/intevation/flys/importer/WstParser.java @ 464:d37ccb04ab5d

Removed trailing whitespace. flys-backend/trunk@1637 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sun, 03 Apr 2011 10:41:27 +0000
parents 29a408f80a89
children 5d920695a7f0
comparison
equal deleted inserted replaced
463:24e356cf9f6c 464:d37ccb04ab5d
195 195
196 if (line.startsWith("*")) { 196 if (line.startsWith("*")) {
197 Matcher m = UNIT_COMMENT.matcher(line); 197 Matcher m = UNIT_COMMENT.matcher(line);
198 if (m.matches()) { 198 if (m.matches()) {
199 log.debug("unit comment found"); 199 log.debug("unit comment found");
200 // XXX: This hack is needed because desktop 200 // XXX: This hack is needed because desktop
201 // FLYS is broken figuring out the unit 201 // FLYS is broken figuring out the unit
202 String [] units = m.group(1).split("\\s{2,}"); 202 String [] units = m.group(1).split("\\s{2,}");
203 m = UNIT.matcher(units[0]); 203 m = UNIT.matcher(units[0]);
204 einheit = m.matches() ? m.group(1) : units[0]; 204 einheit = m.matches() ? m.group(1) : units[0];
205 log.debug("unit: " + einheit); 205 log.debug("unit: " + einheit);
307 return NF.format(value); 307 return NF.format(value);
308 } 308 }
309 309
310 protected void addInterval( 310 protected void addInterval(
311 double from, 311 double from,
312 double to, 312 double to,
313 Map<String, Double> values 313 Map<String, Double> values
314 ) { 314 ) {
315 log.debug("addInterval: " + from + " " + to); 315 log.debug("addInterval: " + from + " " + to);
316 316
317 if (values == null) { 317 if (values == null) {
333 column.addColumnQRange(wstQRange); 333 column.addColumnQRange(wstQRange);
334 } 334 }
335 } 335 }
336 336
337 private static final Double [] parseLineAsDouble( 337 private static final Double [] parseLineAsDouble(
338 String line, 338 String line,
339 int count, 339 int count,
340 boolean bStation, 340 boolean bStation,
341 boolean bParseEmptyAsZero 341 boolean bParseEmptyAsZero
342 ) { 342 ) {
343 String [] tokens = parseLine(line, count, bStation); 343 String [] tokens = parseLine(line, count, bStation);
344 344
356 356
357 return doubles; 357 return doubles;
358 } 358 }
359 359
360 private static String [] parseLine( 360 private static String [] parseLine(
361 String line, 361 String line,
362 int tokenCount, 362 int tokenCount,
363 boolean bParseStation 363 boolean bParseStation
364 ) { 364 ) {
365 ArrayList<String> strings = new ArrayList<String>(); 365 ArrayList<String> strings = new ArrayList<String>();
366 366

http://dive4elements.wald.intevation.org