hudson.plugins.testabilityexplorer.parser
Class XmlStatisticsParser

java.lang.Object
  extended by hudson.plugins.testabilityexplorer.parser.StatisticsParser
      extended by hudson.plugins.testabilityexplorer.parser.XmlStatisticsParser

public class XmlStatisticsParser
extends StatisticsParser

Parses and merges Testability Explorer XML reports.

Author:
reik.schatz

Constructor Summary
XmlStatisticsParser(ConverterSelector converterSelector)
           
 
Method Summary
 java.util.Collection<Statistic> parse(java.io.File inFile)
           
 java.util.Collection<Statistic> parse(java.io.InputStream inputStream)
           
protected  CostSummary processRootElement(org.xmlpull.v1.XmlPullParser xpp)
          Creates a new CostSummary from the specified parser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlStatisticsParser

public XmlStatisticsParser(ConverterSelector converterSelector)
Method Detail

parse

public java.util.Collection<Statistic> parse(java.io.File inFile)
Specified by:
parse in class StatisticsParser

parse

public java.util.Collection<Statistic> parse(java.io.InputStream inputStream)
Specified by:
parse in class StatisticsParser

processRootElement

protected CostSummary processRootElement(org.xmlpull.v1.XmlPullParser xpp)
                                  throws java.io.IOException,
                                         org.xmlpull.v1.XmlPullParserException
Creates a new CostSummary from the specified parser. The parser is expected to be at the root element.

Parameters:
xpp - an XmlPullParser
Returns:
CostSummary
Throws:
java.io.IOException - if the underlaying file or stream cannot be processed
org.xmlpull.v1.XmlPullParserException - if the underlaying xml cannot be parsed


Copyright © 2009. All Rights Reserved.