Class RowProcessorSwitch
- java.lang.Object
-
- com.univocity.parsers.common.processor.core.AbstractProcessorSwitch<ParsingContext>
-
- com.univocity.parsers.common.processor.RowProcessorSwitch
-
- All Implemented Interfaces:
ColumnOrderDependent
,Processor<ParsingContext>
,RowProcessor
public abstract class RowProcessorSwitch extends AbstractProcessorSwitch<ParsingContext> implements RowProcessor
A specialRowProcessor
implementation that combines and allows switching among different RowProcessors. Each RowProcessor will have its ownParsingContext
. Concrete implementations of this class are expected to implement theAbstractProcessorSwitch.switchRowProcessor(String[], Context)
method and analyze the input row to determine whether or not the currentRowProcessor
implementation must be changed to handle a special circumstance (determined by the concrete implementation) such as a different row format. When the row processor is switched, theAbstractProcessorSwitch.rowProcessorSwitched(RowProcessor, RowProcessor)
will be called, and must be overridden, to notify the change to the user.
-
-
Constructor Summary
Constructors Constructor Description RowProcessorSwitch()
-
Method Summary
-
Methods inherited from class com.univocity.parsers.common.processor.core.AbstractProcessorSwitch
getHeaders, getIndexes, preventColumnReordering, processEnded, processorSwitched, processStarted, rowProcessed, rowProcessorSwitched, switchRowProcessor, wrapContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.univocity.parsers.common.processor.RowProcessor
processEnded, processStarted, rowProcessed
-
-