Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/common/AbstractCommonExporter.java @ 9200:6393e05a9610
refactoring on processors
author | gernotbelger |
---|---|
date | Fri, 29 Jun 2018 16:29:23 +0200 |
parents | a4121ec450d6 |
children | 217e8e59c386 |
comparison
equal
deleted
inserted
replaced
9199:d177121fc95d | 9200:6393e05a9610 |
---|---|
91 } | 91 } |
92 } | 92 } |
93 | 93 |
94 protected abstract void writeCSVGlobalMetadata(final ExportContextCSV exportContext, final RESULTS results); | 94 protected abstract void writeCSVGlobalMetadata(final ExportContextCSV exportContext, final RESULTS results); |
95 | 95 |
96 /** | |
97 * Formats header with unit and label: msg [unit] (label) | |
98 */ | |
99 // TODO: REMOVE, because it has moved to ExportContextCSV | |
100 protected final String msgUnitLabel(final String key, final String unit, final String label) { | |
101 final String msg = msg(key); | |
102 return String.format("%s [%s] (%s)", msg, unit, label); | |
103 } | |
104 | |
105 @Override | 96 @Override |
106 protected final void writePDF(final OutputStream out) { | 97 protected final void writePDF(final OutputStream out) { |
107 doWritePdf(out, this.results); | 98 doWritePdf(out, this.results); |
108 } | 99 } |
109 | 100 |