Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Newline apachecamel:file2并拆分每行_Newline_Apache Camel_Splitter - Fatal编程技术网

Newline apachecamel:file2并拆分每行

Newline apachecamel:file2并拆分每行,newline,apache-camel,splitter,Newline,Apache Camel,Splitter,我的路由配置如下: <route> <from uri="file:mydir" /> <split streaming="true" parallelProcessing="true"> <tokenize token="\n" xml="false" trim="true" /> <to uri="seda:requests" /> </split> </route&g

我的路由配置如下:

<route>
   <from uri="file:mydir" />
   <split streaming="true" parallelProcessing="true">
       <tokenize token="\n" xml="false" trim="true" />
       <to uri="seda:requests" />
   </split>
</route>

这在Linux上运行,但“mydir”中的文件来自同时在Linux(\n)和Windows(\r\n)上运行的应用程序,因此在第二种情况下,我的剥离失败


如何为这两种情况提供一种配置

发现……这真的很简单:

<tokenize token="\r\n|\n" xml="false" trim="true" />

发现……这真的很简单:

<tokenize token="\r\n|\n" xml="false" trim="true" />