public class Excel03SaxReader extends AbstractExcelSaxReader<Excel03SaxReader> implements org.apache.poi.hssf.eventusermodel.HSSFListener
| Constructor and Description |
|---|
Excel03SaxReader(RowHandler rowHandler)
构造
|
| Modifier and Type | Method and Description |
|---|---|
int |
getSheetIndex()
获得Sheet序号,如果处理所有sheet,获得最大的Sheet序号,从0开始
|
String |
getSheetName()
获得Sheet名,如果处理所有sheet,获得后一个Sheet名,从0开始
|
void |
processRecord(org.apache.poi.hssf.record.Record record)
HSSFListener 监听方法,处理 Record
|
Excel03SaxReader |
read(File file,
int rid)
开始读取Excel
|
Excel03SaxReader |
read(InputStream excelStream,
int rid)
开始读取Excel,读取结束后并不关闭流
|
Excel03SaxReader |
read(org.apache.poi.poifs.filesystem.POIFSFileSystem fs,
int rid)
读取
|
read, read, read, readpublic Excel03SaxReader(RowHandler rowHandler)
rowHandler - 行处理器public Excel03SaxReader read(File file, int rid) throws InstrumentException
ExcelSaxReaderread in interface ExcelSaxReader<Excel03SaxReader>file - Excel文件rid - Excel中的sheet rid编号,如果为-1处理所有编号的sheetInstrumentException - POI异常public Excel03SaxReader read(InputStream excelStream, int rid) throws InstrumentException
ExcelSaxReaderread in interface ExcelSaxReader<Excel03SaxReader>excelStream - Excel流rid - Excel中的sheet rid编号,如果为-1处理所有编号的sheetInstrumentException - POI异常public Excel03SaxReader read(org.apache.poi.poifs.filesystem.POIFSFileSystem fs, int rid) throws InstrumentException
fs - POIFSFileSystemrid - sheet序号InstrumentException - IO异常包装public int getSheetIndex()
public String getSheetName()
public void processRecord(org.apache.poi.hssf.record.Record record)
processRecord in interface org.apache.poi.hssf.eventusermodel.HSSFListenerrecord - 记录Copyright © 2019. All rights reserved.