Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/MiddleBedHeightExporter.java @ 7077:0a337f0005c2 generator-refactoring
Extended init() of OutGenerator to take name of the out to serve.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 20 Sep 2013 16:34:09 +0200 |
parents | 2c7a16d59f67 |
children | 41567bf1e131 |
comparison
equal
deleted
inserted
replaced
7074:a2abd87c0d3b | 7077:0a337f0005c2 |
---|---|
62 "export.bedheight_middle.csv.header.locations"; | 62 "export.bedheight_middle.csv.header.locations"; |
63 | 63 |
64 | 64 |
65 protected List<MiddleBedHeightData[]> data; | 65 protected List<MiddleBedHeightData[]> data; |
66 | 66 |
67 | 67 public MiddleBedHeightExporter() { |
68 public void init(Document request, OutputStream out, CallContext cc) { | |
69 super.init(request, out, cc); | |
70 data = new ArrayList<MiddleBedHeightData[]>(); | 68 data = new ArrayList<MiddleBedHeightData[]>(); |
71 } | 69 } |
72 | |
73 | 70 |
74 @Override | 71 @Override |
75 protected void addData(Object d) { | 72 protected void addData(Object d) { |
76 if (d instanceof CalculationResult) { | 73 if (d instanceof CalculationResult) { |
77 d = ((CalculationResult) d).getData(); | 74 d = ((CalculationResult) d).getData(); |