Re: Does Camel Bindy supports text files

2012-06-22 Thread Henryk Konsek
>> I need to process a text file (.txt). So @CsvRecord works for both .txt and >> .csv files ? Whenever you talk about processing CSV file and don't mention Stream [1] component, a unicorn dies. :) CsvDataFormat csv = new CsvDataFormat(); csv.setDelimiter("|"); // Record represented as List goes

Re: Does Camel Bindy supports text files

2012-06-21 Thread Charles Moulliard
@CsvRecord works for both .txt and .csv files ? YES YES YES On Thu, Jun 21, 2012 at 6:53 PM, arep...@hotmail.com wrote: > Thanks Charles. In the sample code below, it says @CsvRecord, but in my > case > I need to process a text file (.txt). So @CsvRecord works for both .txt and > .csv files ? > >

Re: Does Camel Bindy supports text files

2012-06-21 Thread arep...@hotmail.com
Yes, even I did some research on beanIO and thought it is a good option for flat file processing. It is good to know that comes with camel. -- View this message in context: http://camel.465427.n5.nabble.com/Does-Camel-Bindy-supports-text-files-tp5714792p5714869.html Sent from the Camel - Users

Re: Does Camel Bindy supports text files

2012-06-21 Thread arep...@hotmail.com
Thanks Charles. In the sample code below, it says @CsvRecord, but in my case I need to process a text file (.txt). So @CsvRecord works for both .txt and .csv files ? -- View this message in context: http://camel.465427.n5.nabble.com/Does-Camel-Bindy-supports-text-files-tp5714792p5714867.html Sent

Re: Does Camel Bindy supports text files

2012-06-20 Thread Claus Ibsen
Hi Besides Bindy there is other Camel components for flat files parsing. http://camel.apache.org/data-format.html One of the projects I think seems to be very compelling is the new beanio coming in the new Camel 2.10 release (out later this month) http://camel.apache.org/beanio.html On Thu, Ju

Re: Does Camel Bindy supports text files

2012-06-20 Thread Christian Müller
Yeah, it's well documented at [1]. [1] http://camel.apache.org/bindy.html Best, Christian On Thu, Jun 21, 2012 at 8:23 AM, Charles Moulliard wrote: > For sure that camel-bindy supports also a text file where the separator is > a pipe. > Here is an example > > *case 3 : separator = '|'* > > Comp

Re: Does Camel Bindy supports text files

2012-06-20 Thread Charles Moulliard
For sure that camel-bindy supports also a text file where the separator is a pipe. Here is an example *case 3 : separator = '|'* Compare to the previous case, the separator here is '|' instead of ';' : 10| J| Pauline| M| XD12345678| Fortis Dynamic 15/15| 2500| USD| 08-01-2009 @CsvRecord( sepa