jenkins.plugin.assembla.api
Class XmlDataParser

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.xml.sax.ext.DefaultHandler2
          extended by jenkins.plugin.assembla.api.XmlDataParser
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler, DeclHandler, EntityResolver2, LexicalHandler

public abstract class XmlDataParser
extends DefaultHandler2


Field Summary
protected  StringBuilder currentReadCharacters
           
protected  InputStream instream
           
protected  SAXParser parser
           
 
Constructor Summary
XmlDataParser(InputStream instream)
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endDocument()
           
protected abstract  void endElement(String elementName, String elementValue)
           
 void endElement(String uri, String localName, String qName)
           
 void setInstream(InputStream instream)
           
 void start()
           
 void startDocument()
           
protected abstract  void startElement(String elementName)
           
 void startElement(String uri, String localName, String qName, Attributes attributes)
           
 
Methods inherited from class org.xml.sax.ext.DefaultHandler2
attributeDecl, comment, elementDecl, endCDATA, endDTD, endEntity, externalEntityDecl, getExternalSubset, internalEntityDecl, resolveEntity, resolveEntity, startCDATA, startDTD, startEntity
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instream

protected InputStream instream

parser

protected SAXParser parser

currentReadCharacters

protected StringBuilder currentReadCharacters
Constructor Detail

XmlDataParser

public XmlDataParser(InputStream instream)
Method Detail

startElement

protected abstract void startElement(String elementName)

endElement

protected abstract void endElement(String elementName,
                                   String elementValue)

setInstream

public void setInstream(InputStream instream)

start

public void start()
           throws IOException,
                  SAXException,
                  ParserConfigurationException
Throws:
IOException
SAXException
ParserConfigurationException

startElement

public void startElement(String uri,
                         String localName,
                         String qName,
                         Attributes attributes)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Throws:
SAXException

endElement

public void endElement(String uri,
                       String localName,
                       String qName)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
Throws:
SAXException

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws SAXException
Specified by:
characters in interface ContentHandler
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler
Throws:
SAXException

startDocument

public void startDocument()
                   throws SAXException
Specified by:
startDocument in interface ContentHandler
Overrides:
startDocument in class org.xml.sax.helpers.DefaultHandler
Throws:
SAXException

endDocument

public void endDocument()
                 throws SAXException
Specified by:
endDocument in interface ContentHandler
Overrides:
endDocument in class org.xml.sax.helpers.DefaultHandler
Throws:
SAXException


Copyright © 2004-2013. All Rights Reserved.