public class Excel07SaxReader extends Object implements ExcelSaxReader<Excel07SaxReader>
RID_PREFIX, SHEET_NAME_PREFIX
Constructor and Description |
---|
Excel07SaxReader(RowHandler rowHandler)
构造
|
Modifier and Type | Method and Description |
---|---|
Excel07SaxReader |
read(File file,
int rid)
开始读取Excel
|
Excel07SaxReader |
read(File file,
String idOrRidOrSheetName)
开始读取Excel
|
Excel07SaxReader |
read(InputStream in,
int rid)
开始读取Excel,读取结束后并不关闭流
|
Excel07SaxReader |
read(InputStream in,
String idOrRidOrSheetName)
开始读取Excel,读取结束后并不关闭流
|
Excel07SaxReader |
read(org.apache.poi.openxml4j.opc.OPCPackage opcPackage,
int rid)
开始读取Excel,Sheet编号从0开始计数
|
Excel07SaxReader |
read(org.apache.poi.openxml4j.opc.OPCPackage opcPackage,
String idOrRidOrSheetName)
开始读取Excel,Sheet编号从0开始计数
|
Excel07SaxReader |
read(org.apache.poi.xssf.eventusermodel.XSSFReader xssfReader,
String idOrRidOrSheetName)
开始读取Excel,Sheet编号从0开始计数
|
Excel07SaxReader |
setRowHandler(RowHandler rowHandler)
设置行处理器
|
public Excel07SaxReader(RowHandler rowHandler)
rowHandler
- 行处理器public Excel07SaxReader setRowHandler(RowHandler rowHandler)
rowHandler
- 行处理器public Excel07SaxReader read(File file, int rid) throws POIException
ExcelSaxReader
read
in interface ExcelSaxReader<Excel07SaxReader>
file
- Excel文件rid
- Excel中的sheet rid编号,如果为-1处理所有编号的sheetPOIException
- POI异常public Excel07SaxReader read(File file, String idOrRidOrSheetName) throws POIException
ExcelSaxReader
read
in interface ExcelSaxReader<Excel07SaxReader>
file
- Excel文件idOrRidOrSheetName
- Excel中的sheet id或者rid编号或sheet名称,rid必须加rId前缀,例如rId1,如果为-1处理所有编号的sheetPOIException
- POI异常public Excel07SaxReader read(InputStream in, int rid) throws POIException
ExcelSaxReader
read
in interface ExcelSaxReader<Excel07SaxReader>
in
- Excel流rid
- Excel中的sheet rid编号,如果为-1处理所有编号的sheetPOIException
- POI异常public Excel07SaxReader read(InputStream in, String idOrRidOrSheetName) throws POIException
ExcelSaxReader
read
in interface ExcelSaxReader<Excel07SaxReader>
in
- Excel流idOrRidOrSheetName
- Excel中的sheet id或者rid编号,rid必须加rId前缀,例如rId1,如果为-1处理所有编号的sheetPOIException
- POI异常public Excel07SaxReader read(org.apache.poi.openxml4j.opc.OPCPackage opcPackage, int rid) throws POIException
opcPackage
- OPCPackage
,Excel包,读取后不关闭rid
- Excel中的sheet rid编号,如果为-1处理所有编号的sheetPOIException
- POI异常public Excel07SaxReader read(org.apache.poi.openxml4j.opc.OPCPackage opcPackage, String idOrRidOrSheetName) throws POIException
opcPackage
- OPCPackage
,Excel包,读取后不关闭idOrRidOrSheetName
- Excel中的sheet id或者rid编号或sheet名,rid必须加rId前缀,例如rId1,如果为-1处理所有编号的sheetPOIException
- POI异常public Excel07SaxReader read(org.apache.poi.xssf.eventusermodel.XSSFReader xssfReader, String idOrRidOrSheetName) throws POIException
xssfReader
- XSSFReader
,Excel读取器idOrRidOrSheetName
- Excel中的sheet id或者rid编号或sheet名,rid必须加rId前缀,例如rId1,如果为-1处理所有编号的sheetPOIException
- POI异常Copyright © 2024. All rights reserved.