Interface TableParser
- All Superinterfaces:
Parser
,Serializable
A
Parser
for extracting tabular data from Excel.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder for creating instances ofTableParser
. -
Method Summary
Modifier and TypeMethodDescriptionstatic TableParser.Builder
builder()
Create aTableParser.Builder
for constructing an instance of this class.Defines that the metadata columns_row_number_in_sheet
,_row_number_in_table
should be integers in the final output.default HeaderExtractor
Defaults to aSimpleHeaderExtractor
with default configuration, as appropriate when the first row of the sheet is the header.default NumericCellStringifier
default Collection<ParsedRecord>
parseWorkbook
(WorkbookWithMetadata workbook) Return a collection of parsed records.default RowExtractor
Defaults to aSimpleRowExtractor
with noStopCondition
, so will extract data from theHeader.dataTopRowNumber()
until the end of the sheet.default SheetSelector
Defaults to aSheetSelector
that will include all sheets in the file.
-
Method Details
-
headerExtractor
Defaults to aSimpleHeaderExtractor
with default configuration, as appropriate when the first row of the sheet is the header. -
rowExtractor
Defaults to aSimpleRowExtractor
with noStopCondition
, so will extract data from theHeader.dataTopRowNumber()
until the end of the sheet. -
numericCellStringifier
-
sheetSelector
Defaults to aSheetSelector
that will include all sheets in the file. -
builder
Create aTableParser.Builder
for constructing an instance of this class. -
columnNameToType
Defines that the metadata columns_row_number_in_sheet
,_row_number_in_table
should be integers in the final output.- Specified by:
columnNameToType
in interfaceParser
-
parseWorkbook
Description copied from interface:Parser
Return a collection of parsed records. The returned collection can be empty.- Specified by:
parseWorkbook
in interfaceParser
-