| 构造器和说明 |
|---|
Workbook(OutputStream os,
String applicationName)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
finish()
Complete workbook generation: this writes worksheets and additional files
as zip entries to the output stream.
|
org.dhatim.fastexcel.Writer |
getWriter() |
Worksheet |
newWorksheet(String name)
Create a new worksheet in this workbook.
|
void |
openFile(String name) |
void |
sortWorksheets(Comparator<Worksheet> comparator)
Sort the current worksheets with the given Comparator
|
public Workbook(OutputStream os, String applicationName)
os - Output stream eventually holding the serialized workbook.applicationName - Name of the application which generated this
workbook.public void sortWorksheets(Comparator<Worksheet> comparator)
comparator - The Comparator used to sort the worksheetspublic void finish()
throws IOException
IOException - In case of I/O error.public void openFile(String name) throws IOException
IOExceptionpublic org.dhatim.fastexcel.Writer getWriter()
Copyright © 2021. All rights reserved.