comparison flys-artifacts/src/main/java/de/intevation/flys/exports/WstWriter.java @ 3284:d9af29a4bb85

Various cosmetic doc fixes. flys-artifacts/trunk@4944 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 11 Jul 2012 19:21:43 +0000
parents d9fb3a178be4
children
comparison
equal deleted inserted replaced
3283:a8ce3263b0a7 3284:d9af29a4bb85
26 public class WstWriter { 26 public class WstWriter {
27 27
28 /** The logger used in this class. */ 28 /** The logger used in this class. */
29 private static Logger logger = Logger.getLogger(WstWriter.class); 29 private static Logger logger = Logger.getLogger(WstWriter.class);
30 30
31
32 /** The default unit that is written into the header of the WST. */ 31 /** The default unit that is written into the header of the WST. */
33 public static final String DEFAULT_UNIT = "Wassserstand [NN + m]"; 32 public static final String DEFAULT_UNIT = "Wassserstand [NN + m]";
34 33
35
36 /** The lines that need to be included for the export. */ 34 /** The lines that need to be included for the export. */
37 protected Map<Double, WstLine> lines; 35 protected Map<Double, WstLine> lines;
38 36
39 /** The column names. */ 37 /** The column names. */
40 protected List<String> columnNames; 38 protected List<String> columnNames;
49 protected double[] qs; 47 protected double[] qs;
50 48
51 49
52 50
53 /** 51 /**
54 * This constructor creates a new WstWriter with an OutputStream and a 52 * This constructor creates a new WstWriter with a number of Q columns.
55 * number of Q columns. 53 *
56 *
57 * @param out The output stream where the WST is written to.
58 * @param cols The number of columns of the resulting WST. 54 * @param cols The number of columns of the resulting WST.
59 */ 55 */
60 public WstWriter(int cols) { 56 public WstWriter(int cols) {
61 this.columnNames = new ArrayList<String>(cols); 57 this.columnNames = new ArrayList<String>(cols);
62 this.lines = new HashMap<Double, WstLine>(); 58 this.lines = new HashMap<Double, WstLine>();
66 62
67 63
68 /** 64 /**
69 * This method is used to create the WST from the data that has been 65 * This method is used to create the WST from the data that has been
70 * inserted using add(double[]) before. 66 * inserted using add(double[]) before.
67 * @param out Where to write to.
71 */ 68 */
72 public void write(OutputStream out) { 69 public void write(OutputStream out) {
73 logger.info("WstWriter.write"); 70 logger.info("WstWriter.write");
74 71
75 PrintWriter writer = new PrintWriter( 72 PrintWriter writer = new PrintWriter(

http://dive4elements.wald.intevation.org