The way we have implemented is we have got the output of marshalling in a string 
writer. This 
string can be converted to output stream i suppose.

Here is the way we have done that to get the output content in a string writer...

StringWriter objWriter = new StringWriter();

Marshaller marObj = new Marshaller(objWriter);

marObj.marshal(Your bean Object);

Hope this works :-)

rgds,
Santha Kumar

-----Original Message-----
From: Ashish Goswami, Noida [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 16, 2003 8:51 PM
To: [EMAIL PROTECTED]
Subject: [castor-dev] Marshalling into outputstream



 
   Hi guys,

i want to convert my bean class into output stream without writing to a file
on the disk.Is there a solution to this problem .

thanks in advance.

ashish

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to