org.springframework.batch.item.excel.support.rowset
Class DefaultRowSetFactory

java.lang.Object
  extended by org.springframework.batch.item.excel.support.rowset.DefaultRowSetFactory
All Implemented Interfaces:
RowSetFactory

public class DefaultRowSetFactory
extends Object
implements RowSetFactory

RowSetFactory implementation which constructs a DefaultRowSet instance and DefaultRowSetMetaData instance. The latter will have the ColumnNameExtractor configured on this factory set (default RowNumberColumnNameExtractor.

Since:
0.5.0
Author:
Marten Deinum

Constructor Summary
DefaultRowSetFactory()
           
 
Method Summary
 RowSet create(Sheet sheet)
          Create a rowset instance.
 void setColumnNameExtractor(ColumnNameExtractor columnNameExtractor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRowSetFactory

public DefaultRowSetFactory()
Method Detail

create

public RowSet create(Sheet sheet)
Description copied from interface: RowSetFactory
Create a rowset instance.

Specified by:
create in interface RowSetFactory
Parameters:
sheet - an Excel sheet.
Returns:
a RowSet instance.

setColumnNameExtractor

public void setColumnNameExtractor(ColumnNameExtractor columnNameExtractor)


Copyright © 2017. All rights reserved.