public class Excel07SaxReader extends AbstractExcelSaxReader<Excel07SaxReader> implements ContentHandler
| 构造器和说明 |
|---|
Excel07SaxReader(RowHandler rowHandler)
构造
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endDocument() |
void |
endElement(String uri,
String localName,
String qName) |
void |
endPrefixMapping(String prefix) |
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
void |
processingInstruction(String target,
String data) |
Excel07SaxReader |
read(File file,
int sheetIndex)
开始读取Excel
|
Excel07SaxReader |
read(InputStream in,
int sheetIndex)
开始读取Excel,读取结束后并不关闭流
|
Excel07SaxReader |
read(org.apache.poi.openxml4j.opc.OPCPackage opcPackage,
int sheetIndex)
开始读取Excel,Sheet编号从0开始计数
|
void |
setDocumentLocator(Locator locator) |
Excel07SaxReader |
setRowHandler(RowHandler rowHandler)
设置行处理器
|
void |
skippedEntity(String name) |
void |
startDocument() |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
void |
startPrefixMapping(String prefix,
String uri) |
read, read, read, readpublic Excel07SaxReader(RowHandler rowHandler)
rowHandler - 行处理器public Excel07SaxReader setRowHandler(RowHandler rowHandler)
rowHandler - 行处理器public Excel07SaxReader read(File file, int sheetIndex) throws POIException
ExcelSaxReaderread 在接口中 ExcelSaxReader<Excel07SaxReader>file - Excel文件sheetIndex - Excel中的sheet编号,如果为-1处理所有编号的sheetPOIException - POI异常public Excel07SaxReader read(InputStream in, int sheetIndex) throws POIException
ExcelSaxReaderread 在接口中 ExcelSaxReader<Excel07SaxReader>in - Excel流sheetIndex - Excel中的sheet编号,如果为-1处理所有编号的sheetPOIException - POI异常public Excel07SaxReader read(org.apache.poi.openxml4j.opc.OPCPackage opcPackage, int sheetIndex) throws POIException
opcPackage - OPCPackage,Excel包sheetIndex - Excel中的sheet编号,如果为-1处理所有编号的sheetPOIException - POI异常public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement 在接口中 ContentHandlerSAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement 在接口中 ContentHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters 在接口中 ContentHandlerSAXExceptionpublic void setDocumentLocator(Locator locator)
setDocumentLocator 在接口中 ContentHandlerpublic void startDocument()
throws SAXException
startDocument 在接口中 ContentHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument 在接口中 ContentHandlerSAXExceptionpublic void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping 在接口中 ContentHandlerSAXExceptionpublic void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping 在接口中 ContentHandlerSAXExceptionpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace 在接口中 ContentHandlerSAXExceptionpublic void processingInstruction(String target, String data) throws SAXException
processingInstruction 在接口中 ContentHandlerSAXExceptionpublic void skippedEntity(String name) throws SAXException
skippedEntity 在接口中 ContentHandlerSAXExceptionCopyright © 2018. All rights reserved.