I looked at the junit for beanio .

https://svn.apache.org/repos/asf/camel/trunk/components/camel-beanio/src/test/java/org/apache/camel/dataformat/beanio/BeanIODataFormatComplexTest.java

If I change the marshal route to write it to the file...and run the unit
test . .it produces the file with a line separator.

I am trying to produce the file without the line separator.

Does anyone have any ideas?
On Oct 19, 2013 3:19 AM, "Claus Ibsen" <[email protected]> wrote:

> Hi
>
> I suggest to check the beanio documentation if you can configure the
> line feed to use. Maybe there is unix vs windows style you can set
> etc. Or a way to configure it.
>
> Looking in the source code of camel-beanio does not indicate we use a
> fixed line feed or anything. See the
> org.apache.camel.dataformat.beanio.BeanIODataFormat
>
> On Fri, Oct 18, 2013 at 9:31 PM, nanotech <[email protected]> wrote:
> > I am using BeanIO (fixedlength format ) and Camel..
> >
> > As a POC, I am trying to write the data from Java object to a file using
> a
> > route.
> >
> > Everything works fine but it puts an extra line separator (LS) at the
> end of
> > record.
> >
> > Is there a way to suppress this behavior ?
> >
> > Here is how the Route looks like.
> >                 from("direct:marshal")
> >                 .marshal(format)
> >                 .to("file://output?fileName=output.txt");
> >
> >
> > Thanks,
> > RG
> >
> >
> >
> > --
> > View this message in context:
> http://camel.465427.n5.nabble.com/Getting-rid-of-line-separator-BeanIO-Camel-tp5741859.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> Email: [email protected]
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
>

Reply via email to