Class StaticColumnNameExtractor
java.lang.Object
org.springframework.batch.extensions.excel.support.rowset.StaticColumnNameExtractor
- All Implemented Interfaces:
ColumnNameExtractor
ColumnNameExtractor implementation which returns a preset String[] to use as
the column names. Useful for those situations in which an Excel file without a header
row is read- Since:
- 0.1.0
- Author:
- Marten Deinum
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]getColumnNames(Sheet sheet) Retrieves the names of the columns in the givenSheet.
-
Constructor Details
-
StaticColumnNameExtractor
-
-
Method Details
-
getColumnNames
Description copied from interface:ColumnNameExtractorRetrieves the names of the columns in the givenSheet.- Specified by:
getColumnNamesin interfaceColumnNameExtractor- Parameters:
sheet- the sheet- Returns:
- the column names
-