@TopNS(prefix={"","r"}, value="workbook", uri={"http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://schemas.openxmlformats.org/officeDocument/2006/relationships"}) public class XMLWorkbookWriter extends Object implements IWorkbookWriter
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.slf4j.Logger |
LOGGER
LOGGER
|
protected RelManager |
relManager |
protected Path |
tmpPath
临时文件路径
|
protected Workbook |
workbook |
| 构造器和说明 |
|---|
XMLWorkbookWriter() |
XMLWorkbookWriter(Workbook workbook) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
protected Path |
createTemp() |
RelManager |
getRelManager() |
String |
getSuffix()
The Workbook suffix
|
Workbook |
getWorkbook() |
IWorksheetWriter |
getWorksheetWriter(Sheet sheet)
获取工作表输出协议
|
protected void |
moveToPath(Path source,
Path target) |
void |
setWorkbook(Workbook workbook)
Setting workbook
|
protected void |
writeApp(Path root) |
Path |
writeBefore()
导入前的准备工作
|
protected void |
writeCore(Path root) |
protected void |
writeCustomProperties(Path root)
写自定义属性
|
protected void |
writeGlobalAttribute(Path root) |
void |
writeTo(OutputStream os)
将工作薄写到指定流
|
void |
writeTo(Path path)
Write the workbook file to ${path}
|
protected void |
writeWorkbook(Path root)
将工作簿写入到指定路径
|
protected void |
writeWorksheets(Path root) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmoveToPath, pom, writeToprotected final org.slf4j.Logger LOGGER
protected Workbook workbook
protected final RelManager relManager
protected Path tmpPath
public XMLWorkbookWriter()
public XMLWorkbookWriter(Workbook workbook)
public Workbook getWorkbook()
public RelManager getRelManager()
public void setWorkbook(Workbook workbook)
setWorkbook 在接口中 IWorkbookWriterworkbook - the global workbook contextpublic String getSuffix()
getSuffix 在接口中 IWorkbookWriterpublic void writeTo(Path path) throws IOException
writeTo 在接口中 Storablepath - the storage pathIOException - 写失败异常public void writeTo(OutputStream os) throws IOException
IWorkbookWriterwriteTo 在接口中 IWorkbookWriteros - 输出流IOException - if I/O error occurprotected void writeGlobalAttribute(Path root) throws IOException
IOExceptionprotected void writeApp(Path root) throws IOException
IOExceptionprotected void writeCore(Path root) throws IOException
IOExceptionprotected void writeCustomProperties(Path root) throws IOException
root - root路径IOException - If I/O error occur.protected void writeWorkbook(Path root) throws IOException
root - 根目录路径IOException - 如果写入过程中发生I/O错误protected void writeWorksheets(Path root) throws IOException
IOExceptionpublic Path writeBefore() throws IOException
IWorkbookWriterwriteBefore 在接口中 IWorkbookWriterIOException - if I/O error occurprotected Path createTemp() throws IOException, ExcelWriteException
protected void moveToPath(Path source, Path target) throws IOException
IOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionpublic IWorksheetWriter getWorksheetWriter(Sheet sheet)
IWorkbookWritergetWorksheetWriter 在接口中 IWorkbookWritersheet - 工作表Copyright © 2025. All rights reserved.