Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/importer/parsers/InfoGewParser.java @ 4709:e50d78334246
Documentation.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 19 Dec 2012 11:40:56 +0100 |
parents | c5c48f52dc7b |
children | 255898799ed9 |
comparison
equal
deleted
inserted
replaced
4708:45d05402b2a6 | 4709:e50d78334246 |
---|---|
17 | 17 |
18 import de.intevation.artifacts.common.utils.FileTools; | 18 import de.intevation.artifacts.common.utils.FileTools; |
19 | 19 |
20 import de.intevation.flys.importer.ImportRiver; | 20 import de.intevation.flys.importer.ImportRiver; |
21 | 21 |
22 | |
23 /** Processes files mentioned in an info file for a river. */ | |
22 public class InfoGewParser | 24 public class InfoGewParser |
23 { | 25 { |
24 private static Logger log = Logger.getLogger(InfoGewParser.class); | 26 private static Logger log = Logger.getLogger(InfoGewParser.class); |
25 | 27 |
26 public static final String ENCODING = "ISO-8859-1"; | 28 public static final String ENCODING = "ISO-8859-1"; |
53 | 55 |
54 public static final String normalize(String f) { | 56 public static final String normalize(String f) { |
55 return f.replace("\\", "/").replace("/", File.separator); | 57 return f.replace("\\", "/").replace("/", File.separator); |
56 } | 58 } |
57 | 59 |
60 /* Handle a gew, wst, or bb_info file. */ | |
58 public void parse(File file) throws IOException { | 61 public void parse(File file) throws IOException { |
59 | 62 |
60 LineNumberReader in = null; | 63 LineNumberReader in = null; |
61 | 64 |
62 File root = file.getParentFile(); | 65 File root = file.getParentFile(); |