public class DefaultSaxParser extends org.xml.sax.helpers.DefaultHandler
| 构造器和说明 |
|---|
DefaultSaxParser() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
protected <T> T |
convert(Class<T> type,
String value,
T defaultValue) |
void |
endDocument() |
void |
endElement(String uri,
String localName,
String qName) |
protected String |
getText() |
static StatusInfo |
parse(InputStream in) |
static StatusInfo |
parse(Reader reader) |
static StatusInfo |
parse(String xml) |
static <T extends IEntity<?>> |
parseEntity(Class<T> type,
InputStream in) |
static <T extends IEntity<?>> |
parseEntity(Class<T> type,
String xml) |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
protected Date |
toDate(String str,
String format) |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic static StatusInfo parse(InputStream in) throws SAXException, IOException
public static StatusInfo parse(Reader reader) throws SAXException, IOException
public static StatusInfo parse(String xml) throws SAXException, IOException
public static <T extends IEntity<?>> T parseEntity(Class<T> type, InputStream in) throws SAXException, IOException
public static <T extends IEntity<?>> T parseEntity(Class<T> type, String xml) throws SAXException, IOException
public void characters(char[] ch,
int start,
int length)
throws SAXException
characters 在接口中 ContentHandlercharacters 在类中 org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument 在接口中 ContentHandlerendDocument 在类中 org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement 在接口中 ContentHandlerendElement 在类中 org.xml.sax.helpers.DefaultHandlerSAXExceptionprotected String getText()
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement 在接口中 ContentHandlerstartElement 在类中 org.xml.sax.helpers.DefaultHandlerSAXExceptionCopyright © 2022. All rights reserved.