Maybe this isn't what you are asking but what the heck. This is what I do
for going straight to a string.

    StringWriter sw = new StringWriter();
    l2.marshal(sw);
    return sw.toString();


Where l2 is a castor generated class.


-----Original Message-----
From: Kirk Israel [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 05, 2003 2:04 PM
To: [EMAIL PROTECTED]
Subject: [castor-dev] marshalling straight to string?


Is there a way to marshal an object straight to string, or 
is there a compelling reason why the most flexible option
is a FileWriter?

Thanks,
Kirk

----------------------------------------------------------- 
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