Top Description Constructors Methods
com.univocity.parsers.common.processor

public abstract Class BeanProcessor<T>

extends AbstractBeanProcessor<T, ParsingContext>
implements RowProcessor
Class Inheritance
All Implemented Interfaces
com.univocity.parsers.common.processor.RowProcessor, com.univocity.parsers.common.processor.core.Processor
Type Parameters
<T>
the annotated class type.
Imports
com.univocity.parsers.annotations.helpers.*, com.univocity.parsers.common.*, com.univocity.parsers.common.processor.core.*

A RowProcessor implementation for converting rows extracted from any implementation of AbstractParser into java objects.

The class type of the object must contain the annotations provided in com.univocity.parsers.annotations.

For each row processed, a java bean instance of a given class will be created with its fields populated.

This instance will then be sent to the BeanProcessor#beanProcessed(Object, Context) method, where the user can access it.

Author
Univocity Software Pty Ltd - [email protected]
See Also
AbstractParser, RowProcessor, AbstractBeanProcessor

Constructor Summary

AccessConstructor and Description
public
BeanProcessor(Class<T>
the class with its attributes mapped to fields of records parsed by an AbstractParser or written by an AbstractWriter.
beanType
)

Creates a processor for java beans of a given type.

Method Summary

Inherited from com.univocity.parsers.common.processor.core.AbstractBeanProcessor:
beanProcessedprocessEndedprocessStartedrowProcessed

Constructor Detail

BeanProcessorback to summary
public BeanProcessor(Class<T> beanType)

Creates a processor for java beans of a given type.

Parameters
beanType:Class<T>

the class with its attributes mapped to fields of records parsed by an AbstractParser or written by an AbstractWriter.