public class SheetDataSaxHandler extends DefaultHandler
<sheetData></sheetData>
Modifier and Type | Field and Description |
---|---|
protected int |
index |
protected RowHandler |
rowHandler
行处理器
|
protected org.apache.poi.xssf.model.SharedStrings |
sharedStrings |
protected int |
sheetIndex |
protected org.apache.poi.xssf.model.StylesTable |
stylesTable |
Constructor and Description |
---|
SheetDataSaxHandler(RowHandler rowHandler) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(String uri,
String localName,
String qName)
标签结束的回调处理方法
|
void |
setRowHandler(RowHandler rowHandler)
设置行处理器
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
读到一个xml开始标签时的回调处理方法
|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
protected org.apache.poi.xssf.model.StylesTable stylesTable
protected org.apache.poi.xssf.model.SharedStrings sharedStrings
protected int sheetIndex
protected int index
protected RowHandler rowHandler
public SheetDataSaxHandler(RowHandler rowHandler)
public void setRowHandler(RowHandler rowHandler)
rowHandler
- 行处理器public void startElement(String uri, String localName, String qName, Attributes attributes)
startElement
in interface ContentHandler
startElement
in class DefaultHandler
public void endElement(String uri, String localName, String qName)
endElement
in interface ContentHandler
endElement
in class DefaultHandler
public void characters(char[] ch, int start, int length)
characters
in interface ContentHandler
characters
in class DefaultHandler
Copyright © 2024. All rights reserved.