@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
|
| 构造器和说明 |
|---|
XMLWorkbookWriter() |
XMLWorkbookWriter(Workbook workbook) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
protected Path |
createTemp() |
RelManager |
getRelManager() |
String |
getSuffix()
The Workbook suffix
|
Workbook |
getWorkbook() |
IWorksheetWriter |
getWorksheetWriter(Sheet sheet)
获取工作表输出协议
|
protected void |
reMarkPath(Path zip,
Path path) |
void |
setWorkbook(Workbook workbook)
Setting workbook
|
protected void |
writeApp(Path root) |
protected void |
writeCore(Path root) |
protected void |
writeCustomProperties(Path root)
写自定义属性
|
protected void |
writeGlobalAttribute(Path root) |
protected void |
writeSelf(Path root) |
void |
writeTo(File file)
将工作薄写到指定位置
|
void |
writeTo(OutputStream os)
将工作薄写到指定流
|
void |
writeTo(Path path)
Write the workbook file to ${path}
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpom, reMarkPathpublic 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 occurpublic void writeTo(File file) throws IOException
IWorkbookWriterwriteTo 在接口中 IWorkbookWriterfile - 目标文件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 writeSelf(Path root) throws IOException
IOExceptionprotected Path createTemp() throws IOException, ExcelWriteException
protected void reMarkPath(Path zip, Path path) throws IOException
IOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionpublic IWorksheetWriter getWorksheetWriter(Sheet sheet)
IWorkbookWritergetWorksheetWriter 在接口中 IWorkbookWritersheet - 工作表Copyright © 2024. All rights reserved.