org.springframework.batch.item.excel.support.rowset
Class RowNumberColumnNameExtractor
java.lang.Object
org.springframework.batch.item.excel.support.rowset.RowNumberColumnNameExtractor
- All Implemented Interfaces:
- ColumnNameExtractor
public class RowNumberColumnNameExtractor
- extends Object
- implements ColumnNameExtractor
ColumnNameExtractor which returns the values of a given row (default is 0) as the column
names.
- Since:
- 0.5.0
- Author:
- Marten Deinum
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RowNumberColumnNameExtractor
public RowNumberColumnNameExtractor()
getColumnNames
public String[] getColumnNames(Sheet sheet)
- Description copied from interface:
ColumnNameExtractor
- Retrieves the names of the columns in the given Sheet.
- Specified by:
getColumnNames in interface ColumnNameExtractor
- Parameters:
sheet - the sheet
- Returns:
- the column names
setHeaderRowNumber
public void setHeaderRowNumber(int headerRowNumber)
Copyright © 2017. All rights reserved.