comparison flys-backend/src/main/java/de/intevation/flys/importer/parsers/W80Parser.java @ 4761:ab87408bb0d3

W80Parser: Added field to store a date.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 04 Jan 2013 11:11:52 +0100
parents 69bb2996ed19
children c6654a19b00f
comparison
equal deleted inserted replaced
4760:69bb2996ed19 4761:ab87408bb0d3
9 9
10 import java.io.File; 10 import java.io.File;
11 import java.io.IOException; 11 import java.io.IOException;
12 12
13 import java.util.ArrayList; 13 import java.util.ArrayList;
14 import java.util.Calendar;
15 import java.util.Date;
14 import java.util.List; 16 import java.util.List;
15 import java.util.Map; 17 import java.util.Map;
16 import java.util.TreeMap; 18 import java.util.TreeMap;
17 19
18 import java.util.regex.Pattern; 20 import java.util.regex.Pattern;
55 } 57 }
56 58
57 59
58 /** Reference point for simple projection. */ 60 /** Reference point for simple projection. */
59 private Anchor anchor; 61 private Anchor anchor;
62
63
64 /** Measurement date of anchor as listed in w80 file. */
65 private Date anchorDate;
60 66
61 67
62 /** Trivial constructor. */ 68 /** Trivial constructor. */
63 public W80Parser() { 69 public W80Parser() {
64 data = new TreeMap<Double, List<XY>>(EpsilonComparator.CMP); 70 data = new TreeMap<Double, List<XY>>(EpsilonComparator.CMP);
120 /** Called before consuming first line of file. */ 126 /** Called before consuming first line of file. */
121 public void reset() { 127 public void reset() {
122 data.clear(); 128 data.clear();
123 currentLine = new ArrayList<XY>(); 129 currentLine = new ArrayList<XY>();
124 anchor = null; 130 anchor = null;
131 anchorDate = null;
125 } 132 }
126 133
127 134
128 /** 135 /**
129 * Get the Index of the last cross-section lines point. 136 * Get the Index of the last cross-section lines point.

http://dive4elements.wald.intevation.org