第 331 章 流组件
从 Camel 版本 1.3 开始提供
流: 组件提供对 System.in、system.out 和 System.err 流的访问,并允许处理文件和 URL。
Maven 用户需要将以下依赖项添加到此组件的 pom.xml 中:
331.1. URI 格式 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
stream:in[?options] stream:out[?options] stream:err[?options] stream:header[?options]
stream:in[?options]
stream:out[?options]
stream:err[?options]
stream:header[?options]
另外,支持 文件和 url 端点 URI:
stream:file?fileName=/foo/bar.txt stream:url[?options]
stream:file?fileName=/foo/bar.txt
stream:url[?options]
如果指定了 stream:header URI,则使用 stream 标头来查找要写入的流。此选项仅适用于流生产者(即,它不能出现在 from ()中)。
您可以使用以下格式在 URI 中附加查询选项 ?option=value& amp;option=value&…