Hi
It was recently fixed by a PR with commit id
20259e405e3b349e7c860ae563e8e941446aaaba
You can just create the tokenizer expression manually and set all the options
TokenizerExpression tz = new TokenizerExpression();
tz.setGroup(1000);
tz.setToken(xxxx);
from("direct:start")
.split(tz)
.to("mock:split")
.end()
.to("mock:result");
On Wed, Oct 28, 2015 at 9:26 PM, furchess123 <[email protected]> wrote:
> Just checked the Camel source code:
>
> /**
> * Evaluates a token expression on the message body
> *
> * @param token the token
> * @param regex whether the token is a regular expression or not
> * @param group to group by the given number
> * @return the builder to continue processing the DSL
> */
> public T tokenize(String token, boolean regex, *int group*) {
> return delegate.tokenize(token, regex);
> }
>
> *The "group" parameter is never used!* Hello????
>
> Is that an oversight? Why is it not documented, or, for that matter, why is
> the documentation misleading and inaccurate? This seems like a major flaw.
> Is there really no way to configure a system-agnostic file splitter that
> would group lines? Or, perhaps, that works if I use XML configuration? But
> I'd hate that, I have no XML in my application, everything is Java
> configured. Can anyone advise, please?
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/split-tokenize-w-regex-type-token-arg-and-grouping-DOESN-T-GROUP-split-items-tp5773166p5773167.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2nd edition:
https://www.manning.com/books/camel-in-action-second-edition