comparison artifacts/src/main/java/org/dive4elements/river/exports/FlowVelocityExporter.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 af13ceeba52a
children 41567bf1e131
comparison
equal deleted inserted replaced
7074:a2abd87c0d3b 7077:0a337f0005c2
56 "export.flow_velocity.csv.header.locations"; 56 "export.flow_velocity.csv.header.locations";
57 57
58 58
59 protected List<FlowVelocityData[]> data; 59 protected List<FlowVelocityData[]> data;
60 60
61 61 public FlowVelocityExporter() {
62 public void init(Document request, OutputStream out, CallContext cc) {
63 super.init(request, out, cc);
64 data = new ArrayList<FlowVelocityData[]>(); 62 data = new ArrayList<FlowVelocityData[]>();
65 } 63 }
66
67 64
68 @Override 65 @Override
69 protected void addData(Object d) { 66 protected void addData(Object d) {
70 if (d instanceof CalculationResult) { 67 if (d instanceof CalculationResult) {
71 d = ((CalculationResult) d).getData(); 68 d = ((CalculationResult) d).getData();

http://dive4elements.wald.intevation.org