public interface BasicParser<T>
Modifier and Type | Method and Description |
---|---|
default void |
parse(File file,
boolean skipHeader,
Consumer<T> consumer)
Will parse this file, line by line, passing the reulting objects (1 per line) to the supplied consumer.
|
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,
boolean skipHeader,
Consumer<T> consumer) |
default void |
parse(Reader reader,
Consumer<T> consumer) |
T |
parse(String line)
Parse one line into some custom object.
|
default void |
parse(String filePath,
boolean skipHeader,
Consumer<T> consumer) |
default void parse(File file, boolean skipHeader, Consumer<T> consumer)
file
- The CSV file to parseskipHeader
- Should skip (1) header row/lineconsumer
- The results consumerdefault void parse(File file, Consumer<T> consumer)
file
- The CSV file to parseconsumer
- The results consumerdefault void parse(Reader reader, boolean skipHeader, Consumer<T> consumer)
reader
- The CSV data readerskipHeader
- Should skip (1) header row/lineconsumer
- The results consumerdefault void parse(Reader reader, Consumer<T> consumer)
reader
- The CSV data readerconsumer
- The results consumerT parse(String line) throws RecoverableCondition
line
- The text line to parseRecoverableCondition
Copyright © 2019 Optimatika. All rights reserved.