public class ExcelItemWriter extends AbstractItemWriter
ExcelItemWriter class.
| Modifier and Type | Field and Description |
|---|---|
protected int |
countPerSheet |
protected org.apache.poi.hssf.usermodel.HSSFCellStyle |
dateStyle |
protected int |
index |
protected org.apache.poi.hssf.usermodel.HSSFSheet |
sheet |
protected org.apache.poi.hssf.usermodel.HSSFCellStyle |
timeStyle |
protected org.apache.poi.hssf.usermodel.HSSFWorkbook |
workbook |
context, outputStream| Constructor and Description |
|---|
ExcelItemWriter()
Constructor for ExcelItemWriter.
|
ExcelItemWriter(OutputStream outputStream)
Constructor for ExcelItemWriter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
flush()
close.
|
int |
getCountPerSheet()
Getter for the field
countPerSheet. |
protected String |
getDateFormat()
getDateFormat.
|
protected String |
getDateTimeFormat()
getDateTimeFormat.
|
TransferFormat |
getFormat()
getFormat.
|
protected org.apache.poi.hssf.usermodel.HSSFCellStyle |
getTitleStyle()
getTitleStyle.
|
void |
setContext(Context context)
setContext.
|
void |
setCountPerSheet(int dataNumPerSheet)
Setter for the field
countPerSheet. |
void |
write(Object obj)
write.
|
protected void |
writeItem(Object datas)
writeItem.
|
void |
writeTitle(String titleName,
Object data)
writeTitle.
|
getOutputStream, setOutputStreamprotected int countPerSheet
protected org.apache.poi.hssf.usermodel.HSSFWorkbook workbook
protected int index
protected org.apache.poi.hssf.usermodel.HSSFSheet sheet
protected org.apache.poi.hssf.usermodel.HSSFCellStyle dateStyle
protected org.apache.poi.hssf.usermodel.HSSFCellStyle timeStyle
public ExcelItemWriter()
Constructor for ExcelItemWriter.
public ExcelItemWriter(OutputStream outputStream)
Constructor for ExcelItemWriter.
outputStream - a OutputStream object.public int getCountPerSheet()
Getter for the field countPerSheet.
public void setCountPerSheet(int dataNumPerSheet)
Setter for the field countPerSheet.
dataNumPerSheet - a int.public TransferFormat getFormat()
getFormat.
String object.public void flush()
close.
public void setContext(Context context)
setContext.
设置每个sheet多少条记录setContext in interface WritersetContext in class AbstractItemWritercontext - a Context object.protected org.apache.poi.hssf.usermodel.HSSFCellStyle getTitleStyle()
getTitleStyle.
HSSFCellStyle object.Copyright © 2005–2018 The Beangle Software. All rights reserved.