
Class ExcelDataProvider
java.lang.Object
org.hl7.fhir.r5.testfactory.dataprovider.TableDataProvider
org.hl7.fhir.r5.testfactory.dataprovider.ExcelDataProvider
-
Constructor Summary
ConstructorsConstructorDescriptionExcelDataProvider(String filename) ExcelDataProvider(String filename, String sheetName, String range, Locale locale) Constructs an ExcelTableDataProvider. -
Method Summary
Methods inherited from class org.hl7.fhir.r5.testfactory.dataprovider.TableDataProvider
forFile
-
Constructor Details
-
ExcelDataProvider
public ExcelDataProvider(String filename, String sheetName, String range, Locale locale) throws IOException, org.apache.poi.openxml4j.exceptions.InvalidFormatException Constructs an ExcelTableDataProvider.- Parameters:
filename- The path to the Excel file.sheetName- The name of the sheet to read.sheetName- The range of the sheet to read.- Throws:
IOException- If an I/O error occurs.org.apache.poi.openxml4j.exceptions.InvalidFormatException- If the file format is invalid.
-
ExcelDataProvider
public ExcelDataProvider(String filename) throws org.apache.poi.openxml4j.exceptions.InvalidFormatException, IOException - Throws:
org.apache.poi.openxml4j.exceptions.InvalidFormatExceptionIOException
-
-
Method Details
-
columns
- Specified by:
columnsin classTableDataProvider
-
nextRow
- Specified by:
nextRowin classTableDataProvider
-
cells
- Specified by:
cellsin classTableDataProvider
-
cell
- Specified by:
cellin classTableDataProvider
-
close
Closes the workbook and releases resources.- Throws:
IOException- If an I/O error occurs.
-
reset
- Specified by:
resetin classTableDataProvider- Throws:
org.hl7.fhir.exceptions.FHIRException
-