users@jaxb.java.net

Re: marhal to a file on Windows ala Unix

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 26 Jan 2004 09:26:26 -0800

> How could I marshal to a file in Windows without using the undesirable
> ^M characters. Are there any settings to control this?

How about a filtering Writer that removes ^M ?:

    marshaller.marshal( obj, new CtrlMStripWriter(new FileWriter(...)) );

regards,
--
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net