in java6-utils/src/com/intellij/rt/coverage/report/XMLCoverageReport.java [248:276]
public void write(FileOutputStream fOut, ProjectData project, String title) throws IOException {
XMLOutputFactory factory = XMLOutputFactory.newInstance();
try {
myOut = factory.createXMLStreamWriter(new BufferedOutputStream(fOut));
myFiles.clear();
myOut.writeStartDocument();
newLine();
myOut.writeStartElement(REPORT_TAG);
String reportName = title != null ? title : IJ_REPORT_NAME;
myOut.writeAttribute(NAME_TAG, reportName);
newLine();
writeProject(project);
myOut.writeEndDocument();
} catch (XMLStreamException e) {
throw wrapIOException(e);
} finally {
try {
if (myOut != null) {
myOut.flush();
myOut.close();
myOut = null;
}
fOut.close();
} catch (XMLStreamException e) {
ErrorReporter.info("Error closing file.", e);
}
}
}