public final class ExcelBindReader<R> extends ExcelBaseReader<R>
context, defaultSheetName, inputStream, readerResolver| 构造器和说明 |
|---|
ExcelBindReader(ExcelReaderContext<R> context,
InputStream inputStream,
Excel excel) |
| 限定符和类型 | 方法和说明 |
|---|---|
ExcelBindReader<R> |
addListener(ExcelReadListener readListener)
Add readListeners
|
ExcelBindReader<R> |
addListener(List<ExcelReadListener> readListenerList)
Add readListeners
|
ExcelBindReader<R> |
check(boolean enable)
Detect whether the imported Excel file matches the mapped entity
|
ExcelBindReader<R> |
headBefore(boolean need)
Whether to read all rows before the header
|
ExcelBindReader<R> |
metaInfo(boolean need)
已过时。
Please use headBefore
|
ExcelBindReader<R> |
read()
Read excel
|
ExcelBindReader<R> |
read(int headerIndex)
Specifies that the Excel subscript to start reading.
|
ExcelBindReader<R> |
read(int headerIndex,
String sheetName)
Read the specified sheet
|
ExcelBindReader<R> |
read(String sheetName)
Read the specified sheet
|
ExcelBindReader<R> |
removeEmptyListener()
Remove read empty listener
|
ExcelBindReader<R> |
removeResultListener()
Remove excel read result listener
|
ExcelBindReader<R> |
removeRowListener()
Remove excel read row listener
|
ExcelBindReader<R> |
subscribe(ExcelResultReadListener<R> excelResultReadListener)
Subscribe to the data after the import is complete
|
finishpublic ExcelBindReader(ExcelReaderContext<R> context, InputStream inputStream, Excel excel)
public ExcelBindReader<R> read()
public ExcelBindReader<R> read(String sheetName)
sheetName - sheet namepublic ExcelBindReader<R> read(int headerIndex)
headerIndex - The actual subscript of the Excel header,
subscript is evaluated from 0public ExcelBindReader<R> read(int headerIndex, String sheetName)
headerIndex - The actual subscript of the Excel header,
subscript is evaluated from 0sheetName - Excel Sheet name@Deprecated public ExcelBindReader<R> metaInfo(boolean need)
need - Needpublic ExcelBindReader<R> headBefore(boolean need)
need - Needpublic ExcelBindReader<R> check(boolean enable)
enable - Whether enable checkpublic ExcelBindReader<R> addListener(List<ExcelReadListener> readListenerList)
readListenerList - Read listenerspublic ExcelBindReader<R> addListener(ExcelReadListener readListener)
readListener - Read listenerpublic ExcelBindReader<R> subscribe(ExcelResultReadListener<R> excelResultReadListener)
excelResultReadListener - resultReadListenerpublic ExcelBindReader<R> removeEmptyListener()
public ExcelBindReader<R> removeRowListener()
public ExcelBindReader<R> removeResultListener()
Copyright © 2021. All rights reserved.