protected class HttpBugzillaSession.XmlParser extends DefaultHandler2 implements Runnable
HttpBugzillaSession.BugzillaBugIterator.addBug(Issue)).| Constructor and Description |
|---|
HttpBugzillaSession.XmlParser(InputStream xmlStream,
HttpBugzillaSession.BugzillaBugIterator iterator)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endDocument() |
void |
endElement(String uri,
String localName,
String name) |
boolean |
parseBoolean(String s)
Parses a boolean for Bugzilla XML.
|
void |
run()
Runs the extraction.
|
void |
startDocument() |
void |
startElement(String uri,
String localName,
String name,
Attributes attributes) |
attributeDecl, comment, elementDecl, endCDATA, endDTD, endEntity, externalEntityDecl, getExternalSubset, internalEntityDecl, resolveEntity, resolveEntity, startCDATA, startDTD, startEntityendPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warningpublic HttpBugzillaSession.XmlParser(InputStream xmlStream, HttpBugzillaSession.BugzillaBugIterator iterator)
xmlStream - - input stream with XML response from Bugzillaiterator - - corresponding iterator that receives the resultspublic void startElement(String uri, String localName, String name, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionDefaultHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)public void endElement(String uri, String localName, String name) throws SAXException
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionDefaultHandler.endElement(java.lang.String, java.lang.String, java.lang.String)public 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 startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class org.xml.sax.helpers.DefaultHandlerSAXExceptionDefaultHandler.startDocument()public void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class org.xml.sax.helpers.DefaultHandlerSAXExceptionDefaultHandler.endDocument()public boolean parseBoolean(String s)
s - - boolean to parseCopyright © 2012. All Rights Reserved.