Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/importer/parsers/WstParser.java @ 6506:1c68d4b2a1c0
Fix import of source from wst-files
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 28 Jun 2013 17:47:27 +0200 |
parents | 7664ab97b4c7 |
children | f4fb7e38a288 b2eab164a441 |
comparison
equal
deleted
inserted
replaced
6504:7664ab97b4c7 | 6506:1c68d4b2a1c0 |
---|---|
8 | 8 |
9 package org.dive4elements.river.importer.parsers; | 9 package org.dive4elements.river.importer.parsers; |
10 | 10 |
11 import java.util.ArrayList; | 11 import java.util.ArrayList; |
12 import java.util.HashSet; | 12 import java.util.HashSet; |
13 import java.util.Arrays; | |
13 | 14 |
14 import java.io.File; | 15 import java.io.File; |
15 import java.io.IOException; | 16 import java.io.IOException; |
16 import java.io.LineNumberReader; | 17 import java.io.LineNumberReader; |
17 import java.io.InputStreamReader; | 18 import java.io.InputStreamReader; |
210 for (int i=0; i < split.length; i++) { | 211 for (int i=0; i < split.length; i++) { |
211 colNaWidths[i] = Integer.parseInt(split[i]); | 212 colNaWidths[i] = Integer.parseInt(split[i]); |
212 } | 213 } |
213 } | 214 } |
214 else if (spezial.startsWith(COLUMN_QUELLE)) { | 215 else if (spezial.startsWith(COLUMN_QUELLE)) { |
216 spezial = spezial.substring(COLUMN_QUELLE.length()).trim(); | |
215 if (spezial.length() == 0) { | 217 if (spezial.length() == 0) { |
216 continue; | 218 continue; |
217 } | 219 } |
218 quellen = StringUtil.splitQuoted(spezial, '"'); | 220 quellen = StringUtil.splitQuoted(spezial, '"'); |
221 log.debug("sources: " + Arrays.toString(quellen)); | |
219 } | 222 } |
220 else if (spezial.startsWith(COLUMN_DATUM)) { | 223 else if (spezial.startsWith(COLUMN_DATUM)) { |
221 spezial = spezial.substring(COLUMN_DATUM.length()).trim(); | 224 spezial = spezial.substring(COLUMN_DATUM.length()).trim(); |
222 if (spezial.length() == 0) { | 225 if (spezial.length() == 0) { |
223 continue; | 226 continue; |