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