Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/importer/parsers/SedimentDensityParser.java @ 2817:8979f2294af9
Finished parsing MINFO specific sediment density.
flys-backend/trunk@4234 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 13 Apr 2012 11:45:29 +0000 |
parents | 70b4a31a3306 |
children | 8649e4ed01ec |
comparison
equal
deleted
inserted
replaced
2816:70b4a31a3306 | 2817:8979f2294af9 |
---|---|
1 package de.intevation.flys.importer.parsers; | 1 package de.intevation.flys.importer.parsers; |
2 | |
3 import java.io.File; | |
4 import java.io.IOException; | |
2 | 5 |
3 import java.math.BigDecimal; | 6 import java.math.BigDecimal; |
4 | 7 |
5 import java.text.NumberFormat; | 8 import java.text.NumberFormat; |
6 import java.text.ParseException; | 9 import java.text.ParseException; |
37 | 40 |
38 protected List<ImportSedimentDensity> sedimentDensities; | 41 protected List<ImportSedimentDensity> sedimentDensities; |
39 | 42 |
40 protected ImportSedimentDensity current; | 43 protected ImportSedimentDensity current; |
41 | 44 |
45 protected String currentDescription; | |
46 | |
42 | 47 |
43 public SedimentDensityParser() { | 48 public SedimentDensityParser() { |
44 sedimentDensities = new ArrayList<ImportSedimentDensity>(); | 49 sedimentDensities = new ArrayList<ImportSedimentDensity>(); |
45 } | 50 } |
46 | 51 |
47 | 52 |
48 @Override | 53 @Override |
54 public void parse(File file) throws IOException { | |
55 currentDescription = file.getName(); | |
56 | |
57 super.parse(file); | |
58 } | |
59 | |
60 | |
61 @Override | |
49 protected void reset() { | 62 protected void reset() { |
50 current = new ImportSedimentDensity(); | 63 current = new ImportSedimentDensity(currentDescription); |
51 } | 64 } |
52 | 65 |
53 | 66 |
54 @Override | 67 @Override |
55 protected void finish() { | 68 protected void finish() { |