Hi Kenny, InputSource constructor can use an InputStream, while PrintStream is subclassed from OutputStream.
I think I had to do something like it earlier when I was doing some XSL:FO work (XSLT transformation). // get the size of the data to be transformed, don't exactly remember // I guess I got it from the Http request contentlength... int size = request.getContentLength(); ByteArrayOutputStream baos = new ByteArrayOutputStream(size); InputSource is = new InputSource(new ByteArrayInputStream(baos.toByteArray())); Hope this helps, Regards, Dharmendra ps: have a nice day! -----Original Message----- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED] Behalf Of Lai, Kenny Sent: Wednesday, August 06, 2003 1:48 PM To: [EMAIL PROTECTED] Subject: sorry.. meant PrintStream/OutputStream to InputSource.. (I'm clearly not here today) -----Original Message----- From: Lai, Kenny [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 1:25 PM To: [EMAIL PROTECTED] Subject: hello.. having a lil trouble figuring out how to convert a PrintWriter object to InputSource.. strapped for time and i'm not thinking clearly today, can anyone help =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com