public class ExcelWriterBuilder extends AbstractExcelWriterParameterBuilder<ExcelWriterBuilder,WriteWorkbook>
构造器和说明 |
---|
ExcelWriterBuilder() |
automaticMergeHead, excludeColumnFiledNames, excludeColumnIndexes, includeColumnFiledNames, includeColumnIndexes, needHead, registerWriteHandler, relativeHeadRowIndex, useDefaultStyle
autoTrim, head, head, locale, registerConverter, self, use1904windowing
public ExcelWriterBuilder autoCloseStream(Boolean autoCloseStream)
autoCloseStream
- public ExcelWriterBuilder password(String password)
WARRING:Encryption is when the entire file is read into memory, so it is very memory intensive.
password
- public ExcelWriterBuilder inMemory(Boolean inMemory)
Comment and RichTextString are only supported in memory mode.
public ExcelWriterBuilder writeExcelOnException(Boolean writeExcelOnException)
@Deprecated public ExcelWriterBuilder convertAllFiled(Boolean convertAllFiled)
ExcelIgnore
ignore a
field. if false , you must use ExcelProperty
to use a filed.
Default true
convertAllFiled
- public ExcelWriterBuilder excelType(ExcelTypeEnum excelType)
public ExcelWriterBuilder file(OutputStream outputStream)
public ExcelWriterBuilder file(File outputFile)
public ExcelWriterBuilder file(String outputPathName)
public ExcelWriterBuilder withTemplate(InputStream templateInputStream)
public ExcelWriterBuilder withTemplate(File templateFile)
public ExcelWriterBuilder withTemplate(String pathName)
@Deprecated public ExcelWriterBuilder registerWriteHandler(WriteHandler writeHandler)
WriteHandler
public ExcelWriter build()
public ExcelWriterSheetBuilder sheet()
public ExcelWriterSheetBuilder sheet(Integer sheetNo)
public ExcelWriterSheetBuilder sheet(String sheetName)
public ExcelWriterSheetBuilder sheet(Integer sheetNo, String sheetName)
protected WriteWorkbook parameter()
AbstractParameterBuilder
parameter
在类中 AbstractParameterBuilder<ExcelWriterBuilder,WriteWorkbook>
Copyright © 2018–2021 Alibaba Group. All rights reserved.