Mercurial > dive4elements > river
changeset 4723:83304d3651ec
DA66Parser: Whitespace cosmetics.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 27 Dec 2012 16:14:15 +0100 |
parents | c3e2b0d343dc |
children | c30152f77f77 |
files | flys-backend/src/main/java/de/intevation/flys/importer/parsers/DA66Parser.java |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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()) {