public final class CellsSheetInfo extends Object
Provides the information of a sheet.
Modifier and Type | Method and Description |
---|---|
String |
extractRow(int rowIndex,
String... columns)
Extracts all characters from the row with the
rowIndex and returns the data as a string. |
String |
extractSheet(String... columns)
Extracts all characters from the sheet and returns the data as a string.
|
String |
extractSheetHeader()
Extracts the name of the sheet.
|
List<String> |
getColumnNames()
Gets a collection of the columns' names.
|
int |
getIndex()
Gets a index of the sheet.
|
String |
getName()
Gets a name of the sheet.
|
int |
getRowCount()
Gets a total number of the rows.
|
public List<String> getColumnNames()
Gets a collection of the columns' names.
public int getIndex()
Gets a index of the sheet.
public String getName()
Gets a name of the sheet.
public int getRowCount()
Gets a total number of the rows.
public String extractSheetHeader()
Extracts the name of the sheet.
public String extractSheet(String... columns)
Extracts all characters from the sheet and returns the data as a string.
columns
- A collection of the columns' names to read.public String extractRow(int rowIndex, String... columns)
Extracts all characters from the row with the rowIndex
and returns the data as a string.
rowIndex
- The index of the row.columns
- A collection of the columns' names to read.Copyright © 2019. All rights reserved.