Class MultiBeanProcessor
java.lang.Object
com.univocity.parsers.common.processor.core.AbstractMultiBeanProcessor<ParsingContext>
com.univocity.parsers.common.processor.MultiBeanProcessor
- All Implemented Interfaces:
ConversionProcessor, Processor<ParsingContext>, RowProcessor
public abstract class MultiBeanProcessor
extends AbstractMultiBeanProcessor<ParsingContext>
implements RowProcessor
A
RowProcessor implementation for converting rows extracted from any implementation of AbstractParser into java objects.
The class types passed to the constructor of this class must contain the annotations provided in com.univocity.parsers.annotations.
For each row processed, one or more java bean instances of any given class will be created with their fields populated.
Each individual instance will then be sent to the AbstractMultiBeanProcessor.beanProcessed(Class, Object, Context) method, where the user can access the
beans parsed for each row.
- Author:
- Univocity Software Pty Ltd - parsers@univocity.com
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMultiBeanProcessor(Class... beanTypes) Creates a processor for java beans of multiple types -
Method Summary
Methods inherited from class AbstractMultiBeanProcessor
beanProcessed, convertAll, convertFields, convertIndexes, convertType, getBeanClasses, getProcessorOfType, processEnded, processStarted, rowProcessedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RowProcessor
processEnded, processStarted, rowProcessed
-
Constructor Details
-
MultiBeanProcessor
Creates a processor for java beans of multiple types- Parameters:
beanTypes- the classes with their attributes mapped to fields of records parsed by anAbstractParseror written by anAbstractWriter.
-