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
IOException
public static ExcelFileAnalysisHelper bind(InputStream inputStream) throws IOException
IOException
public String[] getSheetNames()
public <T> List<T> openSheet(int sheetIdx, ISheetHandler<T> handler) throws Exception
Exception
public <T> List<T> openSheet(String sheetName, ISheetHandler<T> handler) throws Exception
Exception
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2022. All rights reserved.