public class XlsDataSetWriter
extends java.lang.Object
IDataSet to an XLS file or OutputStream.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DATE_FORMAT_AS_NUMBER_DBUNIT
A special format pattern used to create a custom
DataFormat which
marks Date values that are stored via POI to an XLS file. |
static java.lang.String |
ZEROS |
| Constructor and Description |
|---|
XlsDataSetWriter() |
| Modifier and Type | Method and Description |
|---|---|
protected static org.apache.poi.ss.usermodel.CellStyle |
createDateCellStyle(org.apache.poi.ss.usermodel.Workbook workbook) |
protected org.apache.poi.ss.usermodel.Workbook |
createWorkbook() |
protected static org.apache.poi.ss.usermodel.CellStyle |
findCellStyle(org.apache.poi.ss.usermodel.Workbook workbook,
java.lang.Short formatCode,
java.util.Map<java.lang.Short,org.apache.poi.ss.usermodel.CellStyle> map) |
protected static java.util.Map<java.lang.Short,org.apache.poi.ss.usermodel.CellStyle> |
findWorkbookCellStyleMap(org.apache.poi.ss.usermodel.Workbook workbook) |
protected static org.apache.poi.ss.usermodel.CellStyle |
getCellStyle(org.apache.poi.ss.usermodel.Workbook workbook,
short formatCode) |
protected void |
setDateCell(org.apache.poi.ss.usermodel.Cell cell,
java.util.Date value,
org.apache.poi.ss.usermodel.Workbook workbook) |
protected void |
setNumericCell(org.apache.poi.ss.usermodel.Cell cell,
java.math.BigDecimal value,
org.apache.poi.ss.usermodel.Workbook workbook) |
void |
write(IDataSet dataSet,
java.io.OutputStream out)
Write the specified dataset to the specified Excel document.
|
public static final java.lang.String ZEROS
public static final java.lang.String DATE_FORMAT_AS_NUMBER_DBUNIT
DataFormat which
marks Date values 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.public void write(IDataSet dataSet, java.io.OutputStream out) throws java.io.IOException, DataSetException
java.io.IOExceptionDataSetExceptionprotected static org.apache.poi.ss.usermodel.CellStyle createDateCellStyle(org.apache.poi.ss.usermodel.Workbook workbook)
protected static org.apache.poi.ss.usermodel.CellStyle getCellStyle(org.apache.poi.ss.usermodel.Workbook workbook,
short formatCode)
protected static java.util.Map<java.lang.Short,org.apache.poi.ss.usermodel.CellStyle> findWorkbookCellStyleMap(org.apache.poi.ss.usermodel.Workbook workbook)
protected static org.apache.poi.ss.usermodel.CellStyle findCellStyle(org.apache.poi.ss.usermodel.Workbook workbook,
java.lang.Short formatCode,
java.util.Map<java.lang.Short,org.apache.poi.ss.usermodel.CellStyle> map)
protected void setDateCell(org.apache.poi.ss.usermodel.Cell cell,
java.util.Date value,
org.apache.poi.ss.usermodel.Workbook workbook)
protected void setNumericCell(org.apache.poi.ss.usermodel.Cell cell,
java.math.BigDecimal value,
org.apache.poi.ss.usermodel.Workbook workbook)
protected org.apache.poi.ss.usermodel.Workbook createWorkbook()
Copyright © 2002-2018. All Rights Reserved.