T - 子对象类型,用于标记返回值thispublic abstract class AbstractExcelSaxReader<T> extends Object implements ExcelSaxReader<T>
| Constructor and Description |
|---|
AbstractExcelSaxReader() |
| Modifier and Type | Method and Description |
|---|---|
T |
read(File file)
开始读取Excel,读取所有sheet
|
T |
read(InputStream in)
开始读取Excel,读取所有sheet,读取结束后并不关闭流
|
T |
read(String path)
开始读取Excel,读取所有sheet
|
T |
read(String path,
int sheetIndex)
开始读取Excel
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitread, readpublic T read(String path) throws POIException
ExcelSaxReaderread in interface ExcelSaxReader<T>path - Excel文件路径POIException - POI异常public T read(File file) throws POIException
ExcelSaxReaderread in interface ExcelSaxReader<T>file - Excel文件POIException - POI异常public T read(InputStream in) throws POIException
ExcelSaxReaderread in interface ExcelSaxReader<T>in - Excel包流POIException - POI异常public T read(String path, int sheetIndex) throws POIException
ExcelSaxReaderread in interface ExcelSaxReader<T>path - 文件路径sheetIndex - Excel中的sheet rid编号,如果为-1处理所有编号的sheetPOIException - POI异常Copyright © 2021. All rights reserved.