public class XlsDataSetWriter extends Object
IDataSet to an XLS file or OutputStream.| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DATE_FORMAT_AS_NUMBER_DBUNIT
A special format pattern used to create a custom
HSSFDataFormat which
marks Date values that are stored via POI to an XLS file. |
static String |
ZEROS |
| 构造器和说明 |
|---|
XlsDataSetWriter() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected static org.apache.poi.hssf.usermodel.HSSFCellStyle |
createDateCellStyle(org.apache.poi.hssf.usermodel.HSSFWorkbook workbook) |
protected void |
setDateCell(org.apache.poi.hssf.usermodel.HSSFCell cell,
Date value,
org.apache.poi.hssf.usermodel.HSSFWorkbook workbook) |
protected void |
setNumericCell(org.apache.poi.hssf.usermodel.HSSFCell cell,
BigDecimal value,
org.apache.poi.hssf.usermodel.HSSFWorkbook workbook) |
void |
write(org.dbunit.dataset.IDataSet dataSet,
OutputStream out)
Write the specified dataset to the specified Excel document.
|
public static final String DATE_FORMAT_AS_NUMBER_DBUNIT
HSSFDataFormat 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(org.dbunit.dataset.IDataSet dataSet,
OutputStream out)
throws IOException,
org.dbunit.dataset.DataSetException
IOExceptionorg.dbunit.dataset.DataSetExceptionprotected static org.apache.poi.hssf.usermodel.HSSFCellStyle createDateCellStyle(org.apache.poi.hssf.usermodel.HSSFWorkbook workbook)
protected void setDateCell(org.apache.poi.hssf.usermodel.HSSFCell cell,
Date value,
org.apache.poi.hssf.usermodel.HSSFWorkbook workbook)
protected void setNumericCell(org.apache.poi.hssf.usermodel.HSSFCell cell,
BigDecimal value,
org.apache.poi.hssf.usermodel.HSSFWorkbook workbook)
Copyright © 2013. All Rights Reserved.