330장. 스트림 구성 요소

Camel 버전 1.3에서 사용 가능

stream: 구성 요소에서 System.in,System.outSystem.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가 지정된 경우 스트림 헤더를 사용하여 쓸 스트림을 찾습니다. 이 옵션은 스트림 생산자에만 사용할 수 있습니다(즉, 에서 표시할 수 없음).

다음 형식 ?option=value&option=value&…​로 URI에 쿼리 옵션을 추가할 수 있습니다.