Hello, Although there is no such method you can just write it in a bean and refer to it in your splitter. I have done it when wanting to split based on some uncommon value. The below is taken directly from the documentation.
from("direct:body") // here we use a POJO bean mySplitterBean to do the split of the payload .split().method("mySplitterBean", "splitBody") .to("mock:result") On Wed, May 31, 2017 at 12:21 AM, onders [via Camel] < ml+s465427n580139...@n5.nabble.com> wrote: > Hi, > > Split eip supports tokenizing by a delimiter and grouping as below; > > from("file:inbox") > .split().tokenize("\n", 1000).streaming() > .to("activemq:queue:order"); > > Is there a specific reason why we don't have such like. > > from("file:inbox") > .split().tokenizeByByteSize(1024, 1000).streaming() > .to("activemq:queue:order"); > > where 1024 is a length of byte to read from input stream? > > Cheers > Onder > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://camel.465427.n5.nabble.com/split-by-byte-chunks-tp5801398.html > To start a new topic under Camel - Users, email ml+s465427n465428h31@n5. > nabble.com > 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/split-by-byte-chunks-tp5801398p5801406.html Sent from the Camel - Users mailing list archive at Nabble.com.