T - the annotated class type.public abstract class BeanProcessor<T> extends com.univocity.parsers.common.processor.core.AbstractBeanProcessor<T,HtmlParsingContext> implements RowProcessor
A RowProcessor implementation for converting rows extracted from any implementation of HtmlParser 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 AbstractBeanProcessor.beanProcessed(Object, Context) method, where the user can access it.
HtmlParser,
HtmlEntitySettings,
RowProcessor,
AbstractBeanProcessor| Constructor and Description |
|---|
BeanProcessor(Class<T> beanType)
Creates a processor for java beans of a given type.
|
beanProcessed, processEnded, processStarted, rowProcessedaddConversion, createBean, getBeanClass, initialize, initialize, isStrictHeaderValidationEnabled, processField, reverseConversions, setStrictHeaderValidationEnabledapplyConversions, convertAll, convertFields, convertIndexes, convertType, handleConversionError, initializeConversions, reverseConversions, toDataProcessingExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocessEnded, processStarted, rowProcessedpublic BeanProcessor(Class<T> beanType)
Creates a processor for java beans of a given type.
beanType - the class with its attributes mapped to fields of records parsed by an HtmlParser.Copyright © 2018 uniVocity Software Pty Ltd. All rights reserved.