gautamdudeja90 / beanio

Automatically exported from code.google.com/p/beanio
Apache License 2.0
0 stars 1 forks source link

Suppressing Line Separator #93

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If I try to run the testMarshal Junit of Apache Camel + Bean  IO ( 
https://svn.apache.org/repos/asf/camel/trunk/components/camel-beanio/src/test/ja
va/org/apache/camel/dataformat/beanio/BeanIODataFormatComplexTest.java )

and write the output to a file, I get a line separator at the end of the fixed 
length record.

What is the expected output? What do you see instead?

My output is the fixed width file, but I do not want the line 
separator.(because there is only 1 record per file )

What version of BeanIO are you using? What JDK version?
BeanIO 2.07
Apache Camel 2.11
JDK 1.6

Please provide any additional information below.

I have also asked the problem in camel-users group.
http://camel.465427.n5.nabble.com/Getting-rid-of-line-separator-BeanIO-Camel-td5
741859.html

Original issue reported on code.google.com by rachit.g...@gmail.com on 21 Oct 2013 at 4:03

GoogleCodeExporter commented 9 years ago
That is expected- in many cases it is customary to write the record terminator 
after a single record.

I cannot speak for the Camel integration, but if desired, you could use 
Marshaller instead of a BeanWriter, or set the recordTerminator to "" in your 
mapping file.

Thanks,
Kevin

Original comment by kevin.s...@gmail.com on 22 Oct 2013 at 2:37