Package org.dbunit.dataset.excel
Class XlsDataSetWriter
java.lang.Object
org.dbunit.dataset.excel.XlsDataSetWriter
Writes an
IDataSet to an XLS file or OutputStream.- Since:
- 2.4.0
- Version:
- $Revision$ $Date$
- Author:
- gommma (gommma AT users.sourceforge.net), Last changed by: $Author$
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static org.apache.poi.ss.usermodel.CellStylecreateDateCellStyle(org.apache.poi.ss.usermodel.Workbook workbook) protected org.apache.poi.ss.usermodel.Workbookprotected static org.apache.poi.ss.usermodel.CellStylefindCellStyle(org.apache.poi.ss.usermodel.Workbook workbook, Short formatCode, Map<Short, org.apache.poi.ss.usermodel.CellStyle> map) findWorkbookCellStyleMap(org.apache.poi.ss.usermodel.Workbook workbook) protected static org.apache.poi.ss.usermodel.CellStylegetCellStyle(org.apache.poi.ss.usermodel.Workbook workbook, short formatCode) protected voidsetDateCell(org.apache.poi.ss.usermodel.Cell cell, Date value, org.apache.poi.ss.usermodel.Workbook workbook) protected voidsetNumericCell(org.apache.poi.ss.usermodel.Cell cell, BigDecimal value, org.apache.poi.ss.usermodel.Workbook workbook) voidwrite(IDataSet dataSet, OutputStream out) Write the specified dataset to the specified Excel document.
-
Field Details
-
ZEROS
- See Also:
-
DATE_FORMAT_AS_NUMBER_DBUNIT
A special format pattern used to create a customDataFormatwhich marksDatevalues that are stored via POI to an XLS file. Note that it might produce problems if a normal numeric value uses this format pattern incidentally.- See Also:
-
-
Constructor Details
-
XlsDataSetWriter
public XlsDataSetWriter()
-
-
Method Details
-
write
Write the specified dataset to the specified Excel document.- Throws:
IOExceptionDataSetException
-
createDateCellStyle
protected static org.apache.poi.ss.usermodel.CellStyle createDateCellStyle(org.apache.poi.ss.usermodel.Workbook workbook) -
getCellStyle
protected static org.apache.poi.ss.usermodel.CellStyle getCellStyle(org.apache.poi.ss.usermodel.Workbook workbook, short formatCode) -
findWorkbookCellStyleMap
-
findCellStyle
-
setDateCell
protected void setDateCell(org.apache.poi.ss.usermodel.Cell cell, Date value, org.apache.poi.ss.usermodel.Workbook workbook) -
setNumericCell
protected void setNumericCell(org.apache.poi.ss.usermodel.Cell cell, BigDecimal value, org.apache.poi.ss.usermodel.Workbook workbook) -
createWorkbook
protected org.apache.poi.ss.usermodel.Workbook createWorkbook()
-