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

W80Parser: Remove unneeded code.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 03 Jan 2013 14:41:21 +0100
parents ba8c2147b4ff
children e965593eee57
comparison
equal deleted inserted replaced
4755:ba8c2147b4ff 4756:ce15529f7624
26 */ 26 */
27 public class W80Parser extends LineParser implements CrossSectionParser 27 public class W80Parser extends LineParser implements CrossSectionParser
28 { 28 {
29 /** Private logger. */ 29 /** Private logger. */
30 private static Logger logger = Logger.getLogger(W80Parser.class); 30 private static Logger logger = Logger.getLogger(W80Parser.class);
31
32 /** Regex to match lines of files in da66 format. */
33 private static final Pattern LINE_PATTERN =
34 Pattern.compile("[\\p{Alnum} ]{20}" + // ID
35 "[0-9 ]{10} " + // GK-right
36 "[0-9 ]{10} " + // GK-left
37 "[0-9 ]{6} " + // date
38 "[0-9 ]{1} " + // kind of exactness of measurement
39 "[0-9 ]{7} " + // height
40 "[0-9 ]{6} " + // date of height
41 "[0-9 ]{1} " + // kind of exactness of height-measurement
42 "[0-9 ]{3} " + // kind (only for NIV-points)
43 "[\\p{Alnum} ]{6} " + // date of point decline
44 "[\\p{Alnum} ]{8} " + // note for point
45 "[0-9 ]{2} " // actuality
46 );
47
48 // TODO define headers regex, use regex or remove it.
49 31
50 32
51 /** The current line to which add points. */ 33 /** The current line to which add points. */
52 private List<XY> currentLine; 34 private List<XY> currentLine;
53 35

http://dive4elements.wald.intevation.org