简体   繁体   English

骆驼阅读文件内容

[英]Camel Read File Content

Is there a way(api function) to read the whole content of a file(or line by line) in camel without writing a converter or any java code? 有没有办法(api函数)在没有编写转换器或任何java代码的情况下读取camel中文件的整个内容(或逐行)?

Thanks 谢谢

发现它,对不起打扰的人:

from("file://inputdir/").convertBodyTo(String.class)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM