Read Servlet output stream

how can i read servlet output stream
[43 byte] By [amitjaina] at [2007-11-27 7:54:13]
# 1
? You do not read from an OutputStream.
gimbal2a at 2007-7-12 19:35:30 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

i m using SAX to create an XML.

I set result to "Servlet Output Stream" as shown below :->

SAXTransformerFactory saxTF = SAXTransformerFactory.newInstance();

TransformerHandler th = saxTF.newTransformerHandler();

Transformer t = th.getTransformer();

StreamResult stRes = new StreamResult(res.getOutputStream());

th.setResult(stRes);

th.startDocument();

what i want to wright the same xml result in file at the same time(parallel y).

amitjaina at 2007-7-12 19:35:30 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...