Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/utils/DgmSqlConverter.java @ 3952:5d8db3349b77
Backend: Code simplification. Removed trailing whietspace.
flys-backend/trunk@5605 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 27 Sep 2012 08:08:38 +0000 |
parents | 89ada0b9083f |
children | f5912365619c |
comparison
equal
deleted
inserted
replaced
3951:89ada0b9083f | 3952:5d8db3349b77 |
---|---|
38 * <ol><b>verbose</b>: Accepts integer values (0, 1, 2, 3) to modify the log | 38 * <ol><b>verbose</b>: Accepts integer values (0, 1, 2, 3) to modify the log |
39 * messages. The higher the value the more log messages are printed to STDOUT. | 39 * messages. The higher the value the more log messages are printed to STDOUT. |
40 * </ol> | 40 * </ol> |
41 * <ol><b>full</b>: Accepts true|false values. If true is set, all rivers | 41 * <ol><b>full</b>: Accepts true|false values. If true is set, all rivers |
42 * included in the CSV file are taken into account while parsing. Otherwise, | 42 * included in the CSV file are taken into account while parsing. Otherwise, |
43 * the converter reads information for 'Saar', 'Mosel' and 'Eble' only.</ol> | 43 * the converter reads information for 'Saar', 'Mosel' and 'Eble' only.</ol> |
44 * </ul> | 44 * </ul> |
45 * | 45 * |
46 * @author Ingo Weinzierl <a href="mailto:ingo.weinzierl@intevation.de"> | 46 * @author Ingo Weinzierl <a href="mailto:ingo.weinzierl@intevation.de"> |
47 * ingo.weinzierl@intevation.de</a> | 47 * ingo.weinzierl@intevation.de</a> |
48 * | 48 * |
49 */ | 49 */ |
50 public class DgmSqlConverter { | 50 public class DgmSqlConverter { |
264 this.dgms = new ArrayList<DGM>(); | 264 this.dgms = new ArrayList<DGM>(); |
265 } | 265 } |
266 | 266 |
267 public void read() { | 267 public void read() { |
268 info("Read DGM information from CSV file: " + csv.getAbsolutePath()); | 268 info("Read DGM information from CSV file: " + csv.getAbsolutePath()); |
269 | 269 |
270 InputStream in = null; | 270 InputStream in = null; |
271 | 271 |
272 try { | 272 try { |
273 in = new BufferedInputStream(new FileInputStream(csv)); | 273 in = new BufferedInputStream(new FileInputStream(csv)); |
274 } | 274 } |
455 } | 455 } |
456 } | 456 } |
457 | 457 |
458 public void write() { | 458 public void write() { |
459 info("Write DEM information to SQL file: " + sql.getAbsolutePath()); | 459 info("Write DEM information to SQL file: " + sql.getAbsolutePath()); |
460 | 460 |
461 BufferedWriter bufferedWriter = null; | 461 BufferedWriter bufferedWriter = null; |
462 try { | 462 try { |
463 bufferedWriter = new BufferedWriter(new FileWriter(sql)); | 463 bufferedWriter = new BufferedWriter(new FileWriter(sql)); |
464 | 464 |
465 for (DGM dgm : dgms) { | 465 for (DGM dgm : dgms) { |