in java6-utils/src/com/intellij/rt/coverage/report/XMLCoverageReport.java [108:135]
public XMLProjectData read(InputStream fIn) throws IOException {
XMLInputFactory factory = XMLInputFactory.newInstance();
XMLProjectData report = new XMLProjectData();
try {
myIn = factory.createXMLStreamReader(new BufferedInputStream(fIn));
while (myIn.hasNext()) {
int event = myIn.next();
if (event == XMLStreamReader.START_ELEMENT) {
String name = myIn.getLocalName();
if (REPORT_TAG.equals(name)) {
readProject(report);
}
}
}
return report;
} catch (XMLStreamException e) {
throw wrapIOException(e);
} finally {
if (myIn != null) {
try {
myIn.close();
} catch (XMLStreamException ignored) {
}
myIn = null;
}
fIn.close();
}
}