PoiDriver

Implements ExcelDriver using Apache POI (SXSSF).

SXSSFWorkbook is a streaming extension of POI that writes data in chunks (defaulting to 100 rows) to keep memory usage low while still allowing random access to the recently written rows.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun applyOptions(options: WorkbookOptions)

Applies configuration options to the workbook.

Link copied to clipboard
open override fun finishRow()

Finalize the current row.

Link copied to clipboard
open override fun finishSheet()

Finalize the current sheet.

Link copied to clipboard
open override fun finishWorkbook()

Finalize the workbook, write to the output stream, and release resources.

Link copied to clipboard
open override fun mergeCells(firstRow: Int, lastRow: Int, firstCol: Int, lastCol: Int)

Merge a range of cells into one.

Link copied to clipboard
open override fun nativeSheet(): Any?

Returns the currently active native sheet object.

Link copied to clipboard
open override fun nativeWorkbook(): Any?

Returns the underlying native workbook object.

Link copied to clipboard
open override fun setColumnWidth(col: Int, width: Int)

Set the width of a specific column.

Link copied to clipboard
open override fun startRow(rowNum: Int, height: Double? = null)

Start a new row at the specified rowNum.

Link copied to clipboard
open override fun startSheet(name: String)

Create a new sheet with the given name.

Link copied to clipboard
open override fun startWorkbook(outputStream: OutputStream)

Initialize the workbook and associate it with the provided outputStream.

Link copied to clipboard
open override fun writeCell(col: Int, value: Any?, style: ExcelStyle? = null, link: String? = null)

Write a value to a specific cell in the current row.

Link copied to clipboard
open override fun writeFormula(col: Int, formula: String, style: ExcelStyle? = null)

Write a formula to a specific cell in the current row.