public class ExcelFileAnalysisHelper extends Object implements Closeable
| Modifier and Type | Method and Description |
|---|---|
static ExcelFileAnalysisHelper |
bind(File file) |
static ExcelFileAnalysisHelper |
bind(InputStream inputStream) |
void |
close() |
String[] |
getSheetNames() |
List<Object[]> |
openSheet(int sheetIdx) |
<T> List<T> |
openSheet(int sheetIdx,
ISheetHandler<T> handler) |
List<Object[]> |
openSheet(String sheetName) |
<T> List<T> |
openSheet(String sheetName,
ISheetHandler<T> handler) |
public static ExcelFileAnalysisHelper bind(File file) throws IOException
IOExceptionpublic static ExcelFileAnalysisHelper bind(InputStream inputStream) throws IOException
IOExceptionpublic String[] getSheetNames()
public <T> List<T> openSheet(int sheetIdx, ISheetHandler<T> handler) throws Exception
Exceptionpublic <T> List<T> openSheet(String sheetName, ISheetHandler<T> handler) throws Exception
Exceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2022. All rights reserved.