public class JiraXmlHandler extends org.xml.sax.helpers.DefaultHandler
| Modifier and Type | Class and Description |
|---|---|
protected class |
JiraXmlHandler.ParsingThread |
| Constructor and Description |
|---|
JiraXmlHandler(AbstractAuthorizedSession session)
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addIssue(Issue o)
Adds a new issue to the list of available issues.
|
void |
characters(char[] ch,
int start,
int length) |
protected Issue |
createIssue()
Returns the correct issue instance.
|
void |
endDocument() |
void |
endElement(String uri,
String localName,
String qName) |
int |
getDeliveredIssues() |
int |
getEndIndex() |
int |
getIssuesParsed() |
int |
getSize()
Returns the size of items returned.
|
int |
getStartIndex() |
int |
getTotal() |
boolean |
hasNext()
Returns true when there are issues available.
|
Issue |
next()
Delivers the next issue.
|
Date |
parseDate(String s) |
void |
startDocument() |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
void |
startParsing(HttpURLConnection con) |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warningpublic JiraXmlHandler(AbstractAuthorizedSession session)
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 void startElement(String uri, String localName, String qName, 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)protected Issue createIssue()
public void endElement(String uri, String localName, String qName) 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 int getStartIndex()
public int getEndIndex()
public int getTotal()
public int getSize()
public int getIssuesParsed()
public int getDeliveredIssues()
public void startParsing(HttpURLConnection con) throws IOException
IOExceptionpublic void addIssue(Issue o)
public Issue next()
public boolean hasNext()
getSize() to be non-negative.Copyright © 2012. All Rights Reserved.