public final class TestSuiteXmlParser extends DefaultHandler
Constructor and Description |
---|
TestSuiteXmlParser(ConsoleLogger consoleLogger) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(String uri,
String localName,
String qName) |
boolean |
isValid() |
List<ReportTestSuite> |
parse(InputStreamReader stream) |
List<ReportTestSuite> |
parse(String xmlPath) |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public TestSuiteXmlParser(ConsoleLogger consoleLogger)
public List<ReportTestSuite> parse(String xmlPath) throws ParserConfigurationException, SAXException, IOException
public List<ReportTestSuite> parse(InputStreamReader stream) throws ParserConfigurationException, SAXException, IOException
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
public void characters(char[] ch, int start, int length)
characters
in interface ContentHandler
characters
in class DefaultHandler
public boolean isValid()
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.