Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/importer/common/ImportParser.java @ 9650:a2a42a6bac6b
Importer (s/u-info) extensions:
outer try/catch for parse and log of line no,
catching parsing exception if not enough value fields,
parsing error and warning log messages with line number,
detecting and rejecting duplicate data series,
better differentiation between error and warning log messages
author | mschaefer |
---|---|
date | Mon, 23 Mar 2020 14:57:03 +0100 |
parents | 50416a0df385 |
children |
comparison
equal
deleted
inserted
replaced
9649:295b3cb5ebc8 | 9650:a2a42a6bac6b |
---|---|
8 * documentation coming with Dive4Elements River for details. | 8 * documentation coming with Dive4Elements River for details. |
9 */ | 9 */ |
10 | 10 |
11 package org.dive4elements.river.importer.common; | 11 package org.dive4elements.river.importer.common; |
12 | 12 |
13 import java.io.IOException; | |
14 | |
15 /** | 13 /** |
16 * Parser interface | 14 * Parser interface |
17 * | 15 * |
18 * @author Matthias Schäfer | 16 * @author Matthias Schäfer |
19 * | 17 * |
21 public interface ImportParser { | 19 public interface ImportParser { |
22 | 20 |
23 /** | 21 /** |
24 * Parses a file and adds the parsed objects to the parsers state | 22 * Parses a file and adds the parsed objects to the parsers state |
25 */ | 23 */ |
26 void parse() throws IOException; | 24 void parse() throws Exception; |
27 | 25 |
28 /** | 26 /** |
29 * Stores the parsed objects in the database with reference to a river | 27 * Stores the parsed objects in the database with reference to a river |
30 */ | 28 */ |
31 void store(); | 29 void store(); |