public interface LineBasedProcessor
Modifier and Type | Method and Description |
---|---|
static LineBasedProcessor |
create(String name,
InputStream input)
Generates an appropriate LineBasedProcessor based on the file extension of the given file.
|
void |
run(RowProcessor rowProcessor)
Starts processing and sends each line to the given rowProcessor.
|
static LineBasedProcessor create(String name, InputStream input)
name
- the name of the file to processinput
- an input stream containing the data to importsirius.kernel.health.HandledException
- if no processor can handle the given filevoid run(RowProcessor rowProcessor) throws Exception
rowProcessor
- the processor which handles each row of the fileException
- in case an error occurred while processing.Copyright © 2018. All rights reserved.