public class CSVWorksheetWriter extends Object implements IWorksheetWriter
| 构造器和说明 |
|---|
CSVWorksheetWriter(Sheet sheet) |
| 限定符和类型 | 方法和说明 |
|---|---|
IWorksheetWriter |
clone()
Clone
|
void |
close() |
int |
getColumnLimit()
The column limit
|
int |
getRowLimit()
The row limit
|
protected Path |
initWriter(Path root) |
IWorksheetWriter |
setWorksheet(Sheet sheet)
Return a copy worksheet writer
|
protected void |
writeBefore()
Write worksheet header data
|
protected void |
writeRow(Row row)
Write a row data
|
void |
writeTo(Path root)
Write to disk
|
void |
writeTo(Path path,
Supplier<RowBlock> supplier)
Write a row block
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisBigDecimal, isBool, isChar, isDate, isDateTime, isDouble, isFloat, isInt, isLocalDate, isLocalDateTime, isLocalTime, isLong, isShort, isString, isTime, outOfSheet, writeEmptySheetpublic CSVWorksheetWriter(Sheet sheet)
public int getRowLimit()
getRowLimit 在接口中 IWorksheetWriter(1 << 31) - 1public int getColumnLimit()
getColumnLimit 在接口中 IWorksheetWriterpublic void writeTo(Path path, Supplier<RowBlock> supplier) throws IOException
IWorksheetWriterwriteTo 在接口中 IWorksheetWriterpath - the storage pathsupplier - a row-block supplierIOException - if io error occurpublic IWorksheetWriter setWorksheet(Sheet sheet)
IWorksheetWritersetWorksheet 在接口中 IWorksheetWritersheet - the Sheetpublic IWorksheetWriter clone()
IWorksheetWriterclone 在接口中 IWorksheetWriterclone 在类中 Objectpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionpublic void writeTo(Path root) throws IOException
StorablewriteTo 在接口中 Storableroot - the parent pathIOException - if io error occurprotected Path initWriter(Path root) throws IOException
IOExceptionprotected void writeBefore()
throws IOException
IOException - if I/O error occurprotected void writeRow(Row row) throws IOException
row - a row dataIOException - if I/O error occurCopyright © 2020. All rights reserved.