[
https://issues.apache.org/activemq/browse/CAMEL-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45382#action_45382
]
Gert Vanthienen commented on CAMEL-875:
---------------------------------------
Claus,
How about wrapping the Scanner in an Iterator and returning that instead of a
List from the tokenizer Expressions? This would allow the splitter to fetch
values from the Scanner as it needs them to fill the batches to send instead of
first having to create the entire List in memory. Wdyt?
Gert
> Expression tokenizer should support streams
> -------------------------------------------
>
> Key: CAMEL-875
> URL: https://issues.apache.org/activemq/browse/CAMEL-875
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-core
> Affects Versions: 1.4.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 1.5.0
>
>
> See nabble:
> http://www.nabble.com/Splitter-for-big-files-td19272583s22882.html
> Gertv suggestion
> ExpressionBuilder and its tokenizeXXX methods should test if the body is
> Stream, Reader etc. and use java.util.Scanner. Maybe even the String based
> can use Scanner also.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.