Processor implementation that facilitates using multiple implementations of Processor at the
same time.
| Access | Constructor and Description |
|---|---|
| public | CompositeProcessor(Processor<T extends Context>...
the sequence of processors)Processor implementations to be used.Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | processEnded(C
A contextual object with information and controls over the state of the parsing process context)Implements com. Processor used by this class, after the parsing process stopped and all resources were closed.
|
| public void | processStarted(C
A contextual object with information and controls over the current state of the parsing process context)Implements com. Processor used by this class.
|
| public void | rowProcessed(String[]
the data extracted by the parser for an individual record. Note that:
row, C
A contextual object with information and controls over the current state of the parsing process context)Implements com. |
| processors | back to summary |
|---|---|
| private final Processor<T extends Context>[] processors | |
| CompositeProcessor | back to summary |
|---|---|
| public CompositeProcessor(Processor<T extends Context>... processors) Creates a new | |
| processEnded | back to summary |
|---|---|
| public void processEnded(C context) Implements com. This method will by invoked by the parser once for each It will always be called by the parser: in case of errors, if the end of the input us reached, or if the user stopped the process manually using
| |
| processStarted | back to summary |
|---|---|
| public void processStarted(C context) Implements com. Initializes each
| |
| rowProcessed | back to summary |
|---|---|
| public void rowProcessed(String[] row, C context) Implements com. Invoked by the parser after all values of a valid record have been processed. All
| |