[ 
https://issues.apache.org/jira/browse/CAMEL-10136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Charles Moulliard updated CAMEL-10136:
--------------------------------------
    Description: 
The option group ("<tokenize token="\n" group="1000"/>",".tokenize("\n", 
1000)") doesn't exist when we use the Tokenize DSL after a body expression
{code}
.split(body(String.class).tokenize("\n")).streaming()
{code}

but only when we create append the .tokenize() DSL to the splitter

{code}
.split().tokenize("\n",3).streaming()
{code}

Question : Is it the expected behaviour or something missing ?

  was:
The option group ("<tokenize token="\n" group="1000"/>",".tokenize("\n", 
1000)") doesn't exist when using the Token DSL but only when we create a 
TokenExpression

{code}
TokenizerExpression token = new TokenizerExpression();
token.setGroup(1000);
token.setToken("\n");
{code}

Either the code is incomplete or the Camel Doc  (See Splitting by Grouping N 
lines) - http://camel.apache.org/splitter.html


> Missing Group attribute for Token DSL
> -------------------------------------
>
>                 Key: CAMEL-10136
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10136
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.15.3
>            Reporter: Charles Moulliard
>
> The option group ("<tokenize token="\n" group="1000"/>",".tokenize("\n", 
> 1000)") doesn't exist when we use the Tokenize DSL after a body expression
> {code}
> .split(body(String.class).tokenize("\n")).streaming()
> {code}
> but only when we create append the .tokenize() DSL to the splitter
> {code}
> .split().tokenize("\n",3).streaming()
> {code}
> Question : Is it the expected behaviour or something missing ?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to