T - the annotated class type.public class BeanListProcessor<T> extends com.univocity.parsers.common.processor.core.AbstractBeanListProcessor<T,HtmlParsingContext> implements RowProcessor
A convenience BeanProcessor implementation for storing all java objects generated form the parsed input into a list. A typical use case of this class will be:
parserSettings.setRowProcessor(new BeanListProcessor(MyObject.class));
parser.parse(reader); // will invoke the {@link BeanListProcessor#beanProcessed(Object, Context)} method for each generated object.</p>
<p>List<T> beans = rowProcessor.getBeans(); BeanProcessor,
RowProcessor,
HtmlParser,
HtmlEntitySettings| Constructor and Description |
|---|
BeanListProcessor(Class<T> beanType)
Creates a processor that stores java beans of a given type into a list
|
beanProcessed, getBeans, getHeaders, processEnded, processStartedrowProcessedaddConversion, 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 BeanListProcessor(Class<T> beanType)
Creates a processor that stores java beans of a given type into a list
beanType - the class with its attributes mapped to fields of records parsed by a HtmlParser.Copyright © 2018 uniVocity Software Pty Ltd. All rights reserved.