comparison flys-backend/src/main/java/de/intevation/flys/importer/StaFileParser.java @ 499:cce054f27dac

Importer: Only accept main value types 'Q', 'W', 'D' and 'T' by default. flys-backend/trunk@1853 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sun, 08 May 2011 21:34:43 +0000
parents 8d3533a03e10
children
comparison
equal deleted inserted replaced
498:8ab04de0b879 499:cce054f27dac
20 { 20 {
21 private static Logger log = Logger.getLogger(StaFileParser.class); 21 private static Logger log = Logger.getLogger(StaFileParser.class);
22 22
23 public static final String ENCODING = "ISO-8859-1"; 23 public static final String ENCODING = "ISO-8859-1";
24 24
25 public static final String TYPES =
26 System.getProperty("flys.backend.main.value.types", "QWTD");
27
25 public static final Pattern QWTD_ = 28 public static final Pattern QWTD_ =
26 Pattern.compile("\\s*([^\\s]+)\\s+([^\\s]+)\\s+([QWTD-]).*"); 29 Pattern.compile("\\s*([^\\s]+)\\s+([^\\s]+)\\s+([" +
30 Pattern.quote(TYPES) + "]).*");
27 31
28 public StaFileParser() { 32 public StaFileParser() {
29 } 33 }
30 34
31 public boolean parse(ImportGauge gauge) throws IOException { 35 public boolean parse(ImportGauge gauge) throws IOException {

http://dive4elements.wald.intevation.org