I think you can add a processor and you can use java 8 streams to remove
the last line.

On Thu, Feb 9, 2017 at 10:53 AM, Claus Ibsen-2 [via Camel] <
[email protected]> wrote:

> There is no such option to skip last line.
>
> You can do a message transformation afterwards to skip the line or
> remove the last etc using a bit of java code / simple / groovy etc.
>
> I am not sure if the CSV library supports a skip footer option but you
> are welcome to research. Or we can try adding that to camel-csv. If so
> you are welcome to log a JIRA ticket.
>
> On Wed, Feb 8, 2017 at 5:49 PM, FoZi <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=5793715&i=0>> wrote:
>
> > I'm using apache camel in a routing context to integrate some CSV files.
> If I
> > want to skip the first line of the csv I can easily do it in the
> unmarshal:
> >
> >
> > <unmarshal>
> >             <csv delimiter=";" skipFirstLine="true"/>
> > </unmarshal>
> >
> >
> > My question is, whats the best way to ignore/skip the last line of the
> file
> > ?
> >
> > Thank you in advance,
> >  FoZi
> >
> >
> >
> > --
> > View this message in context: http://camel.465427.n5.nabble.
> com/Skip-Footer-Last-Line-tp5793689.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://camel.465427.n5.nabble.com/Skip-Footer-Last-Line-
> tp5793689p5793715.html
> To start a new topic under Camel - Users, email
> [email protected]
> To unsubscribe from Camel - Users, click here
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpbC5jb218NDY1NDI4fDE1MzI5MTE2NTY=>
> .
> NAML
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://camel.465427.n5.nabble.com/Skip-Footer-Last-Line-tp5793689p5793717.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to