public interface BasicParser<T>
Modifier and Type | Method and Description |
---|---|
default void |
parse(File file,
Consumer<T> consumer)
Will parse this file, line by line, passing the reulting objects (1 per line) to the supplied consumer.
|
default void |
parse(Reader reader,
Consumer<T> consumer) |
T |
parse(String line)
Parse one line into some custom object.
|
T parse(String line) throws RecoverableCondition
line
- The text line to parseRecoverableCondition
default void parse(File file, Consumer<T> consumer)
file
- The CSV file to parseconsumer
- The results consumerCopyright © 2018 Optimatika. All rights reserved.