...
Maven users will need to add the following dependency to their pom.xml
for this component:
Code Block | ||||
---|---|---|---|---|
| ||||
<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> |
...
Name | Default Value | Description |
---|---|---|
| | Initial delay in milliseconds before consuming or producing the stream. |
| JVM Default | As of 1.4, you can configure the encoding (is a charset name) to use text-based streams (for example, message body is a |
| | Camel 2.0: Message prompt to use when reading from |
| | Camel 2.0: Optional delay in milliseconds before showing the message prompt. |
| | Camel 2.0: Initial delay in milliseconds before showing the message prompt. This delay occurs only once. Can be used during system startup to avoid message prompts being written while other logging is done to the system out. |
| | Camel 2.0: When using the |
| | Camel 2.0: To be used for continuously reading a stream such as the unix |
| | Camel 2.0: Delay in milliseconds between read attempts when using |
| | Camel 2.5: To group X number of lines in the consumer. For example to group 10 lines and therefore only spit out an Exchange with 10 lines, instead of 1 Exchange per line. |
Message content
The stream: component supports either String
or byte[]
for writing to streams. Just add either String
or byte[]
content to the message.in.body
.
The special stream:header
URI is used for custom output streams. Just add a java.io.OutputStream
object to message.in.header
in the key header
.
See samples for an example.
...