public class ExcelReadWrapper<R> extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static <R> ExcelReadWrapper<R> |
build(Class<R> mapping)
Build a read wrapper
|
ExcelReadWrapper<R> |
data(File file)
Set data
|
ExcelReadWrapper<R> |
data(InputStream inputStream)
Set data
|
ExcelReadWrapper<R> |
data(org.springframework.web.multipart.MultipartFile file)
Set data
|
ExcelReadWrapper<R> |
ignores(String... ignores)
Which excel heads to be ignored when importing
|
ExcelReadWrapper<R> |
listener(ExcelReadListener readListener)
Add read listener
|
ExcelReadWrapper<R> |
listener(List<ExcelReadListener> readListeners)
Add read listener
|
ExcelReadWrapper<R> |
subscribe(ExcelResultReadListener<R> resultListener)
Subscribe to all data at the end of the Excel read,
Subscribing to data in this way requires specifying the returned data List generics
|
public static <R> ExcelReadWrapper<R> build(Class<R> mapping)
R - Data genericmapping - Excel mapping entitypublic ExcelReadWrapper<R> data(org.springframework.web.multipart.MultipartFile file)
file - Excel filepublic ExcelReadWrapper<R> data(File file)
file - Excel filepublic ExcelReadWrapper<R> data(InputStream inputStream)
inputStream - Excel file inputStreampublic ExcelReadWrapper<R> listener(ExcelReadListener readListener)
readListener - readListenerpublic ExcelReadWrapper<R> listener(List<ExcelReadListener> readListeners)
readListeners - readListenerpublic ExcelReadWrapper<R> subscribe(ExcelResultReadListener<R> resultListener)
resultListener - resultListenerpublic ExcelReadWrapper<R> ignores(String... ignores)
ignores - ignore headCopyright © 2021. All rights reserved.