第 330 章 Stream Component
作为 Camel 版本 1.3 提供
流: 组件提供对 System.in、System.out 和 System.err 流的访问,并允许流传输文件和 URL。
Maven 用户需要将以下依赖项添加到其 pom.xml 中:
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-stream</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel core version -->
</dependency>330.1. URI 格式
stream:in[?options] stream:out[?options] stream:err[?options] stream:header[?options]
另外,支持 文件和 url 端点 URI:
stream:file?fileName=/foo/bar.txt stream:url[?options]
如果指定了 stream:header URI,则会使用 流 标头来查找要写入的流。此选项仅适用于流制作者(即,它不能出现在 from ()中)。
您可以使用以下格式在 URI 中附加查询选项 ?option=value&option=value&…