}
public void convert(String streamToRead) throws FileNotFoundException, IOException {
FileOutputStream currentFile = new FileOutputStream(outPath);
final XMLResultFormatter outputter = new XMLResultFormatter();
InstrumentationResultParser parser = createParser(testSuiteName, outputter);
outputter.setOutput(currentFile);
outputter.startTestSuite(testSuiteName);
String[] lines = streamToRead.split("\n");;
parser.processNewLines(lines);
parser.done();
outputter.endTestSuite(testSuiteName, 0);
currentFile.close();
}