[Dive4elements-commits] [PATCH 07 of 11] DA66Parser: Whitespace cosmetics
Wald Commits
scm-commit at wald.intevation.org
Thu Dec 27 16:10:33 CET 2012
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1356621255 -3600
# Node ID 83304d3651ec21211a09927d96488228e2388c3a
# Parent c3e2b0d343dc5c2e666dbfbd41cbec8c89bc7ed8
DA66Parser: Whitespace cosmetics.
diff -r c3e2b0d343dc -r 83304d3651ec flys-backend/src/main/java/de/intevation/flys/importer/parsers/DA66Parser.java
--- a/flys-backend/src/main/java/de/intevation/flys/importer/parsers/DA66Parser.java Thu Dec 27 13:20:19 2012 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/parsers/DA66Parser.java Thu Dec 27 16:14:15 2012 +0100
@@ -58,6 +58,7 @@
);
//Pattern.compile("^([0-9 -]{2})");
+
/** Indices to match group of main regex. */
private static enum FIELD {
HEAD ( 1),
@@ -87,6 +88,7 @@
}
}
+
/** Header lines of da66 can define a type. */
private static enum Type {
DATE ( 0),
@@ -140,12 +142,15 @@
}
}
+
/** Available types. */
private static HashMap<Integer, Type> typeMap;
+
/** Types we can deal with. */
private static List<Type> implementedTypes;
+
static {
typeMap = new HashMap<Integer, Type>();
for (Type t: Type.values()) {
More information about the Dive4elements-commits
mailing list