public abstract class MultiBeanProcessor extends AbstractMultiBeanProcessor<ParsingContext> implements RowProcessor
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.
AbstractParser
,
RowProcessor
,
BeanProcessor
Constructor and Description |
---|
MultiBeanProcessor(Class... beanTypes)
Creates a processor for java beans of multiple types
|
beanProcessed, convertAll, convertFields, convertIndexes, convertType, getBeanClasses, getProcessorOfType, processEnded, processStarted, rowProcessed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
processEnded, processStarted, rowProcessed
public MultiBeanProcessor(Class... beanTypes)
beanTypes
- the classes with their attributes mapped to fields of records parsed by an AbstractParser
or written by an AbstractWriter
.Copyright © 2020 Univocity Software Pty Ltd. All rights reserved.