public class ExcelStreamReaderExample {
public static void main(String[] args) throws IOException {
InputStream excelFile = new FileInputStream("test.xlsx");
StreamingWorkbook workbook = StreamingReader.builder()
for (StreamingSheet sheet : workbook) {
System.out.println("Sheet: " + sheet.getSheetName());
for (RowData rowData : sheet) {
System.out.println("Row: " + rowData.getRowIndex());
for (CellData cellData : rowData) {
System.out.println("Cell: " + cellData.getColumnIndex() + ", Value: " + cellData.getDataValue());
}
}
}
}
}