类 ExcelWriterBuilder
java.lang.Object
com.sh.wf.excel.write.builder.ExcelWriterBuilder
Build ExcelBuilder
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明autoCloseStream(Boolean autoCloseStream) Default trueautomaticMergeHead(Boolean automaticMergeHead) Whether to automatically merge headers.Default is true.build()convertAllFiled(Boolean convertAllFiled) 已过时。Just to be compatible with historical data, The default is always going to be convert all filed.excelType(ExcelTypeEnum excelType) excludeColumnFiledNames(Collection<String> excludeColumnFiledNames) Ignore the custom columns.excludeColumnIndexes(Collection<Integer> excludeColumnIndexes) Ignore the custom columns.file(OutputStream outputStream) You can only choose one of thehead(List)andhead(Class)You can only choose one of thehead(List)andhead(Class)includeColumnFiledNames(Collection<String> includeColumnFiledNames) Only output the custom columns.includeColumnIndexes(Collection<Integer> includeColumnIndexes) Only output the custom columns.Write excel in memory.Whether the encryption.registerConverter(Converter converter) Custom type conversions override the default.registerWriteHandler(WriteHandler writeHandler) 已过时。please useWriteHandlerregisterWriteHandler(WriteHandler writeHandler) Custom write handlerrelativeHeadRowIndex(Integer relativeHeadRowIndex) Writes the head relative to the existing contents of the sheet.sheet()useDefaultStyle(Boolean useDefaultStyle) Use the default style.Default is true.withTemplate(File templateFile) withTemplate(InputStream templateInputStream) withTemplate(String pathName) writeExcelOnException(Boolean writeExcelOnException) Excel is also written in the event of an exception being thrown.The default false.
-
构造器详细资料
-
ExcelWriterBuilder
public ExcelWriterBuilder()
-
-
方法详细资料
-
relativeHeadRowIndex
Writes the head relative to the existing contents of the sheet. Indexes are zero-based.- 参数:
relativeHeadRowIndex- Integer- 返回:
- ExcelWriterBuilder
-
head
You can only choose one of thehead(List)andhead(Class)- 参数:
head- List- 返回:
- ExcelWriterBuilder
-
head
You can only choose one of thehead(List)andhead(Class)- 参数:
clazz- Class- 返回:
- ExcelWriterBuilder
-
needHead
-
autoCloseStream
Default true- 参数:
autoCloseStream- Boolean- 返回:
- ExcelWriterBuilder
-
useDefaultStyle
Use the default style.Default is true.- 参数:
useDefaultStyle- Boolean- 返回:
- ExcelWriterBuilder
-
automaticMergeHead
Whether to automatically merge headers.Default is true.- 参数:
automaticMergeHead- Boolean- 返回:
- ExcelWriterBuilder
-
password
Whether the encryption. WARRING:Encryption is when the entire file is read into memory, so it is very memory intensive.- 参数:
password- String- 返回:
- ExcelWriterBuilder
-
inMemory
Write excel in memory. Default false,the cache file is created and finally written to excel. Comment and RichTextString are only supported in memory mode.- 参数:
inMemory- Boolean- 返回:
- ExcelWriterBuilder
-
excludeColumnIndexes
Ignore the custom columns.- 参数:
excludeColumnIndexes- Collection- 返回:
- ExcelWriterBuilder
-
excludeColumnFiledNames
Ignore the custom columns.- 参数:
excludeColumnFiledNames- Collection- 返回:
- ExcelWriterBuilder
-
includeColumnIndexes
Only output the custom columns.- 参数:
includeColumnIndexes- Collection- 返回:
- ExcelWriterBuilder
-
includeColumnFiledNames
Only output the custom columns.- 参数:
includeColumnFiledNames- Collection- 返回:
- ExcelWriterBuilder
-
writeExcelOnException
Excel is also written in the event of an exception being thrown.The default false.- 参数:
writeExcelOnException- Collection- 返回:
- ExcelWriterBuilder
-
convertAllFiled
已过时。Just to be compatible with historical data, The default is always going to be convert all filed.The default is all excel objects.if true , you can useExcelIgnoreignore a field. if false , you must useExcelPropertyto use a filed.Default true
- 参数:
convertAllFiled- Boolean- 返回:
- ExcelWriterBuilder
-
registerConverter
Custom type conversions override the default.- 参数:
converter- Converter- 返回:
- ExcelWriterBuilder
-
registerWriteHandler
Custom write handler- 参数:
writeHandler- WriteHandler- 返回:
- ExcelWriterBuilder
-
excelType
-
file
-
file
-
file
-
withTemplate
-
withTemplate
-
withTemplate
-
registerWriteHandler
已过时。please useWriteHandlerWrite handler- 参数:
writeHandler- WriteHandler- 返回:
- ExcelWriterBuilder
-
build
-
sheet
-
sheet
-
sheet
-
sheet
-