I
- the item typeE
- the extractor typepublic interface Collector<I,E>
Modifier and Type | Method and Description |
---|---|
void |
commit(E extractor)
Try to add an extractor to the collection
|
I |
extract(E extractor)
Try to extract the item from an extractor without adding it to the collection
|
List<Throwable> |
getErrors()
Get all errors
|
List<I> |
getItems()
Get all items
|
void |
reset()
Reset all collected items and errors
|
void commit(E extractor)
extractor
- the extractor to addI extract(E extractor) throws ParsingException
extractor
- the extractor to useParsingException
- thrown if there is an error extracting the
required fields of the item.void reset()