public void reportSummary(OutputStream out) { Document document = DocumentHelper.createDocument();  toElement(document);  try { XMLWriter writer = new XMLWriter(out, OutputFormat.createPrettyPrint()); writer.write(document); } catch (Exception e) { e.printStackTrace(); }
public void reportSummary(OutputStream out) throws IOException { XMLOutput xmlOutput = new OutputStreamXMLOutput(out); writeXML(xmlOutput); xmlOutput.finish();
	public void reportSummary(OutputStream out) {		Document document = DocumentHelper.createDocument();		toElement(document);		try {			XMLWriter writer = new XMLWriter(out, OutputFormat.createPrettyPrint());			writer.write(document);		} catch (Exception e) {			e.printStackTrace();		}	}