AbstractXmlParser

public abstract class AbstractXmlParser
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.xml.AbstractXmlParser
Known Direct Subclasses
JUnitXmlParser Parser that extracts test result data from JUnit results stored in ant's XMLJUnitResultFormatter and forwards it to a ITestInvocationListener. 
XmlDefsParser Parses a test_defs.xml file. 


Helper base class for parsing xml files

Summary

Nested classes

class AbstractXmlParser.ParseException

Thrown if XML input could not be parsed  

Public constructors

AbstractXmlParser()

Public methods

void parse(InputStream xmlInput)

Parses out xml data contained in given input.

Protected methods

abstract DefaultHandler createXmlHandler()

Creates a DefaultHandler to process the xml

Public constructors

AbstractXmlParser

AbstractXmlParser ()

Public methods

parse

void parse (InputStream xmlInput)

Parses out xml data contained in given input.

Throws
AbstractXmlParser.ParseException if input could not be parsed

Protected methods

createXmlHandler

DefaultHandler createXmlHandler ()

Creates a DefaultHandler to process the xml

Returns
DefaultHandler