public abstract class AbstractXMLParser extends org.xml.sax.helpers.DefaultHandler
| Modifier and Type | Field and Description |
|---|---|
protected Attributes |
fAttributes |
protected StringBuffer |
fData |
protected Reader |
fReader |
protected XMLReader |
fXMLReader |
protected static String |
NS_ID |
protected static String |
PAGE_ID |
protected static String |
PAGE_TAG1 |
protected static String |
PAGE_TAG2 |
protected static String |
TITLE_ID |
| Constructor and Description |
|---|
AbstractXMLParser(String xmlText) |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length)
parse an unlimited amount of characters between 2 enclosing XML-Tags
|
void |
endDocument() |
protected String |
getString() |
void |
parse() |
void |
startDocument() |
endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startElement, startPrefixMapping, unparsedEntityDecl, warningprotected static final String TITLE_ID
protected static final String NS_ID
protected static final String PAGE_ID
protected static final String PAGE_TAG2
protected static final String PAGE_TAG1
protected Attributes fAttributes
protected StringBuffer fData
protected XMLReader fXMLReader
protected Reader fReader
public AbstractXMLParser(String xmlText) throws SAXException
SAXExceptionprotected String getString()
public void startDocument()
startDocument in interface ContentHandlerstartDocument in class org.xml.sax.helpers.DefaultHandlerpublic void endDocument()
endDocument in interface ContentHandlerendDocument in class org.xml.sax.helpers.DefaultHandlerpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerSAXExceptionDefaultHandler.characters(char[], int, int)public void parse()
throws IOException,
SAXException
IOExceptionSAXExceptionCopyright © 2017 Java Wikipedia API (Bliki engine). All rights reserved.