public class WriteContextImpl extends Object implements WriteContext
| Constructor and Description |
|---|
WriteContextImpl(WriteWorkbook writeWorkbook) |
| Modifier and Type | Method and Description |
|---|---|
void |
currentSheet(WriteSheet writeSheet,
WriteTypeEnum writeType)
If the current sheet already exists, select it; if not, create it
|
void |
currentTable(WriteTable writeTable)
If the current table already exists, select it; if not, create it
|
WriteHolder |
currentWriteHolder()
Configuration of currently operated cell.
|
void |
finish(boolean onException)
close
|
org.apache.poi.ss.usermodel.Sheet |
getCurrentSheet()
Current sheet
|
OutputStream |
getOutputStream()
Get outputStream
|
org.apache.poi.ss.usermodel.Workbook |
getWorkbook()
Get workbook
|
void |
initHead(ExcelWriteHeadProperty excelWriteHeadProperty) |
boolean |
needHead()
Need head
|
WriteSheetHolder |
writeSheetHolder()
All information about the sheet you are currently working on
|
WriteTableHolder |
writeTableHolder()
All information about the table you are currently working on
|
WriteWorkbookHolder |
writeWorkbookHolder()
All information about the workbook you are currently working on
|
public WriteContextImpl(WriteWorkbook writeWorkbook)
public void currentSheet(WriteSheet writeSheet, WriteTypeEnum writeType)
WriteContextcurrentSheet in interface WriteContextwriteSheet - public void initHead(ExcelWriteHeadProperty excelWriteHeadProperty)
public void currentTable(WriteTable writeTable)
WriteContextcurrentTable in interface WriteContextpublic WriteWorkbookHolder writeWorkbookHolder()
WriteContextwriteWorkbookHolder in interface WriteContextpublic WriteSheetHolder writeSheetHolder()
WriteContextwriteSheetHolder in interface WriteContextpublic WriteTableHolder writeTableHolder()
WriteContextwriteTableHolder in interface WriteContextpublic WriteHolder currentWriteHolder()
WriteContextcurrentWriteHolder in interface WriteContextpublic void finish(boolean onException)
WriteContextfinish in interface WriteContextpublic org.apache.poi.ss.usermodel.Sheet getCurrentSheet()
WriteContextgetCurrentSheet in interface WriteContextpublic boolean needHead()
WriteContextneedHead in interface WriteContextpublic OutputStream getOutputStream()
WriteContextgetOutputStream in interface WriteContextpublic org.apache.poi.ss.usermodel.Workbook getWorkbook()
WriteContextgetWorkbook in interface WriteContextCopyright © 2018–2023 Alibaba Group. All rights reserved.