/** * {@inheritDoc} */ public void write(final Object source, final String... nameMapping) throws IOException { // update the current row/line numbers super.incrementRowAndLineNo(); // extract the bean values extractBeanValues(source, nameMapping); // write the list super.writeRow(beanValues); }
/** * {@inheritDoc} */ public void write(final Object source, final String[] nameMapping, final CellProcessor[] processors) throws IOException { // update the current row/line numbers super.incrementRowAndLineNo(); // extract the bean values extractBeanValues(source, nameMapping); // execute the processors for each column Util.executeCellProcessors(processedColumns, beanValues, processors, getLineNumber(), getRowNumber()); // write the list super.writeRow(processedColumns); } }