Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/importer/parsers/PRFParser.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 |
---|---|
21 import java.io.InputStreamReader; | 21 import java.io.InputStreamReader; |
22 import java.io.LineNumberReader; | 22 import java.io.LineNumberReader; |
23 import java.io.FileInputStream; | 23 import java.io.FileInputStream; |
24 import java.io.IOException; | 24 import java.io.IOException; |
25 | 25 |
26 import org.apache.log4j.Logger; | 26 import org.apache.logging.log4j.Logger; |
27 import org.apache.logging.log4j.LogManager; | |
27 | 28 |
28 import org.dive4elements.river.importer.XY; | 29 import org.dive4elements.river.importer.XY; |
29 | 30 |
30 import org.dive4elements.artifacts.common.utils.FileTools; | 31 import org.dive4elements.artifacts.common.utils.FileTools; |
31 | 32 |
34 * Parse files in .prf format and generate a mapping of double | 35 * Parse files in .prf format and generate a mapping of double |
35 * (km) to List of Points (XY). | 36 * (km) to List of Points (XY). |
36 */ | 37 */ |
37 public class PRFParser implements CrossSectionParser | 38 public class PRFParser implements CrossSectionParser |
38 { | 39 { |
39 private static Logger log = Logger.getLogger(PRFParser.class); | 40 private static Logger log = LogManager.getLogger(PRFParser.class); |
40 | 41 |
41 public static final String ENCODING = | 42 public static final String ENCODING = |
42 System.getProperty("flys.backend.prf.encoding", "ISO-8859-1"); | 43 System.getProperty("flys.backend.prf.encoding", "ISO-8859-1"); |
43 | 44 |
44 public static final Pattern DATA_PATTERN = | 45 public static final Pattern DATA_PATTERN = |