Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/importer/parsers/InfoGewParser.java @ 9726:0a5239a1e46e 3.2.x
Upgrade to Log4j 2
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 02 Mar 2022 10:26:50 +0100 |
parents | 5e38e2924c07 |
children |
comparison
equal
deleted
inserted
replaced
9725:da398790fa32 | 9726:0a5239a1e46e |
---|---|
19 import java.io.IOException; | 19 import java.io.IOException; |
20 import java.io.LineNumberReader; | 20 import java.io.LineNumberReader; |
21 import java.io.FileInputStream; | 21 import java.io.FileInputStream; |
22 import java.io.InputStreamReader; | 22 import java.io.InputStreamReader; |
23 | 23 |
24 import org.apache.log4j.Logger; | 24 import org.apache.logging.log4j.Logger; |
25 import org.apache.logging.log4j.LogManager; | |
25 | 26 |
26 import org.dive4elements.artifacts.common.utils.FileTools; | 27 import org.dive4elements.artifacts.common.utils.FileTools; |
27 | 28 |
28 import org.dive4elements.river.importer.ImportRiver; | 29 import org.dive4elements.river.importer.ImportRiver; |
29 | 30 |
30 | 31 |
31 /** Processes files mentioned in an info file for a river. */ | 32 /** Processes files mentioned in an info file for a river. */ |
32 public class InfoGewParser | 33 public class InfoGewParser |
33 { | 34 { |
34 private static Logger log = Logger.getLogger(InfoGewParser.class); | 35 private static Logger log = LogManager.getLogger(InfoGewParser.class); |
35 | 36 |
36 public static final String ENCODING = "ISO-8859-1"; | 37 public static final String ENCODING = "ISO-8859-1"; |
37 | 38 |
38 public static final Pattern GEWAESSER = | 39 public static final Pattern GEWAESSER = |
39 Pattern.compile("^\\s*Gew\u00e4sser\\s*:\\s*(.+)"); | 40 Pattern.compile("^\\s*Gew\u00e4sser\\s*:\\s*(.+)"); |