This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new e01bb9d5163e CAMEL-23832: camel-stream - improve the component and 
option descriptions (#30977)
e01bb9d5163e is described below

commit e01bb9d5163efd7745011925d3a38613ee9af75d
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Nov 27 14:56:25 2026 +0100

    CAMEL-23832: camel-stream - improve the component and option descriptions 
(#30977)
    
    New texts for the component description, all 20 endpoint options and the 2 
headers, checked against the Camel code.
    The old texts called delay an initial delay (the producer waits before each 
message), said that closeOnDone keeps
    the stream open (it closes the file when the Splitter is done), described a 
readTimeout that the component does not
    apply, and did not say which kind or side reads each option.
    
    Documentation only, no behavior change. The component JSON, the catalog 
copy, the doc page header and the DSL are
    regenerated. camel-stream is marked as done in 
tasks/component-descriptions.md.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Signed-off-by: Claus Ibsen <[email protected]>
---
 .../apache/camel/catalog/components/stream.json    |  46 +--
 .../camel/catalog/docs/stream-component.adoc       |   2 +-
 .../org/apache/camel/component/stream/stream.json  |  46 +--
 .../src/main/docs/stream-component.adoc            |   2 +-
 .../camel/component/stream/StreamConstants.java    |  12 +-
 .../camel/component/stream/StreamEndpoint.java     | 187 ++++++------
 .../component/ComponentsBuilderFactory.java        |   3 +-
 .../dsl/StreamComponentBuilderFactory.java         |   6 +-
 .../builder/endpoint/EndpointHeaderBuilders.java   |   3 +-
 .../builder/endpoint/StaticEndpointBuilders.java   |  20 +-
 .../endpoint/dsl/StreamEndpointBuilderFactory.java | 326 ++++++++++++---------
 tasks/component-descriptions.md                    |   2 +-
 12 files changed, 366 insertions(+), 289 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/stream.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/stream.json
index 93da0a8c74ff..b49fa82143e7 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/stream.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/stream.json
@@ -3,7 +3,7 @@
     "kind": "component",
     "name": "stream",
     "title": "Stream",
-    "description": "Read from system-in and write to system-out and system-err 
streams.",
+    "description": "Read from System.in, a file or an HTTP URL, and write to 
System.out, System.err, a file or an output stream in a message header.",
     "deprecated": false,
     "firstVersion": "1.3.0",
     "label": "file,core",
@@ -29,8 +29,8 @@
     "autowiredEnabled": { "index": 2, "kind": "property", "displayName": 
"Autowired Enabled", "group": "advanced", "label": "advanced", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, "description": 
"Whether autowiring is enabled. This is used for automatic autowiring options 
(the option must be marked as autowired) by looking up in the registry to find 
if there is a single instance of matching t [...]
   },
   "headers": {
-    "CamelStreamIndex": { "index": 0, "kind": "header", "displayName": "", 
"group": "consumer", "label": "consumer", "required": false, "javaType": 
"long", "deprecated": false, "autowired": false, "secret": false, 
"description": "The index", "constantName": 
"org.apache.camel.component.stream.StreamConstants#STREAM_INDEX" },
-    "CamelStreamComplete": { "index": 1, "kind": "header", "displayName": "", 
"group": "consumer", "label": "consumer", "required": false, "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"description": "Is complete", "constantName": 
"org.apache.camel.component.stream.StreamConstants#STREAM_COMPLETE" }
+    "CamelStreamIndex": { "index": 0, "kind": "header", "displayName": "", 
"group": "consumer", "label": "consumer", "required": false, "javaType": 
"long", "deprecated": false, "autowired": false, "secret": false, 
"description": "The index of the exchange in the stream, starting at 0 and 
counting each exchange that the consumer creates: a line, a group of lines, or 
the bytes of one read. With scanStream and retry, the count goes on after the 
stream is opened again.", "constantName": "org [...]
+    "CamelStreamComplete": { "index": 1, "kind": "header", "displayName": "", 
"group": "consumer", "label": "consumer", "required": false, "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"description": "Whether the exchange is the last one of the stream. The 
consumer reads one line ahead to know it, except for kind in, where it is true 
for each line. Always false with scanStream, as a scanned stream never ends.", 
"constantName": "org.apache.camel.componen [...]
   },
   "bodyTypes": {
     "consumerOut": { "carriers": [ "text" ], "javaType": "java.lang.String", 
"dependsOn": [ "groupLines" ], "byOption": [ { "option": "readLine", "value": 
"false", "carriers": [ "bytes" ], "javaType": "byte[]" } ], "description": 
"Each line of the stream as text. With groupLines, a List of the lines; with 
readLine=false, all the bytes of the stream (with scanStream, the bytes read in 
one scan)" },
@@ -38,29 +38,29 @@
     "producerOut": { "carriers": [ "unchanged" ] }
   },
   "properties": {
-    "kind": { "index": 0, "kind": "path", "displayName": "Kind", "group": 
"common", "label": "", "required": true, "type": "enum", "javaType": 
"java.lang.String", "enum": [ "in", "out", "err", "header", "file", "http" ], 
"deprecated": false, "autowired": false, "secret": false, "description": "Kind 
of stream to use such as System.in, System.out, a file, or a http url." },
-    "encoding": { "index": 1, "kind": "parameter", "displayName": "Encoding", 
"group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "You can configure the encoding (is a charset 
name) to use text-based streams (for example, message body is a String object). 
If not provided, Camel uses the JVM default Charset." },
-    "fileName": { "index": 2, "kind": "parameter", "displayName": "File Name", 
"group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "When using the stream:file URI format, this 
option specifies the filename to stream to\/from." },
-    "fileWatcher": { "index": 3, "kind": "parameter", "displayName": "File 
Watcher", "group": "consumer", "label": "consumer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "To use JVM file watcher 
to listen for file change events to support re-loading files that may be 
overwritten, somewhat like tail --retry" },
-    "groupLines": { "index": 4, "kind": "parameter", "displayName": "Group 
Lines", "group": "consumer", "label": "consumer", "required": false, "type": 
"integer", "javaType": "int", "deprecated": false, "autowired": false, 
"secret": false, "description": "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." },
-    "groupStrategy": { "index": 5, "kind": "parameter", "displayName": "Group 
Strategy", "group": "consumer", "label": "consumer", "required": false, "type": 
"object", "javaType": "org.apache.camel.component.stream.GroupStrategy", 
"deprecated": false, "autowired": false, "secret": false, "description": 
"Allows to use a custom GroupStrategy to control how to group lines." },
-    "httpHeaders": { "index": 6, "kind": "parameter", "displayName": "Http 
Headers", "group": "consumer", "label": "consumer", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "description": "When using stream:http format, this 
option specifies optional http headers, such as Accept: application\/json. 
Multiple headers can be separated by comma. The format of headers can be either 
HEADER=VALUE or HEADER:VALUE. I [...]
-    "httpUrl": { "index": 7, "kind": "parameter", "displayName": "Http Url", 
"group": "consumer", "label": "consumer", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "When using stream:http format, this option 
specifies the http url to stream from." },
-    "initialPromptDelay": { "index": 8, "kind": "parameter", "displayName": 
"Initial Prompt Delay", "group": "consumer", "label": "consumer", "required": 
false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": 2000, "description": "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 t [...]
-    "promptDelay": { "index": 9, "kind": "parameter", "displayName": "Prompt 
Delay", "group": "consumer", "label": "consumer", "required": false, "type": 
"integer", "javaType": "long", "deprecated": false, "autowired": false, 
"secret": false, "description": "Optional delay in milliseconds before showing 
the message prompt." },
-    "promptMessage": { "index": 10, "kind": "parameter", "displayName": 
"Prompt Message", "group": "consumer", "label": "consumer", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "description": "Message prompt to use when 
reading from stream:in; for example, you could set this to Enter a command:" },
-    "readLine": { "index": 11, "kind": "parameter", "displayName": "Read 
Line", "group": "consumer", "label": "consumer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": true, "description": "Whether to read the 
input stream in line mode (terminate by line breaks). Setting this to false, 
will instead read until the end of the stream. With scanStream, each exchange 
holds the bytes read in one scan." },
-    "retry": { "index": 12, "kind": "parameter", "displayName": "Retry", 
"group": "consumer", "label": "consumer", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": false, "description": "Will retry opening the stream if 
it's overwritten, somewhat like tail --retry If reading from files then you 
should also enable the fileWatcher option, to make it work reliable." },
-    "scanStream": { "index": 13, "kind": "parameter", "displayName": "Scan 
Stream", "group": "consumer", "label": "consumer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "To be used for 
continuously reading a stream such as the unix tail command." },
-    "scanStreamDelay": { "index": 14, "kind": "parameter", "displayName": 
"Scan Stream Delay", "group": "consumer", "label": "consumer", "required": 
false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": 
false, "secret": false, "description": "Delay in milliseconds between read 
attempts when using scanStream." },
+    "kind": { "index": 0, "kind": "path", "displayName": "Kind", "group": 
"common", "label": "", "required": true, "type": "enum", "javaType": 
"java.lang.String", "enum": [ "in", "out", "err", "header", "file", "http" ], 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
kind of stream. The consumer reads from in (System.in), file (the file of 
fileName) or http (the URL of httpUrl). The producer writes to out 
(System.out), err (System.err), file (the file of fi [...]
+    "encoding": { "index": 1, "kind": "parameter", "displayName": "Encoding", 
"group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The name of the charset of text, for example 
UTF-8. The consumer uses it to read lines with kind in or file, reads lines of 
kind http with the JVM default charset, and does not use it with 
readLine=false. The producer uses it to write a bo [...]
+    "fileName": { "index": 2, "kind": "parameter", "displayName": "File Name", 
"group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The path of the file that kind file reads or 
writes. The consumer reads the file from the beginning; without scanStream, a 
file that cannot be read fails the start of the consumer. The producer appends 
to the file, and creates it and its  [...]
+    "fileWatcher": { "index": 3, "kind": "parameter", "displayName": "File 
Watcher", "group": "consumer", "label": "consumer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "Whether the consumer 
watches the directory of fileName with the JDK WatchService for the creation or 
modification of the file, for example when it is overwritten or rolled over. 
Only for kind file, and only  [...]
+    "groupLines": { "index": 4, "kind": "parameter", "displayName": "Group 
Lines", "group": "consumer", "label": "consumer", "required": false, "type": 
"integer", "javaType": "int", "deprecated": false, "autowired": false, 
"secret": false, "description": "The number of lines that the consumer puts in 
one exchange, whose body is the result of groupStrategy, by default a List of 
the lines. If 0, each line is one exchange. Without scanStream, the lines left 
at the end of the stream are sent [...]
+    "groupStrategy": { "index": 5, "kind": "parameter", "displayName": "Group 
Strategy", "group": "consumer", "label": "consumer", "required": false, "type": 
"object", "javaType": "org.apache.camel.component.stream.GroupStrategy", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
org.apache.camel.component.stream.GroupStrategy that turns a group of lines 
into the message body. Only used when groupLines is set. The default returns 
the List of the lines as is." },
+    "httpHeaders": { "index": 6, "kind": "parameter", "displayName": "Http 
Headers", "group": "consumer", "label": "consumer", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "description": "The request headers that the consumer 
sends to httpUrl, as a comma-separated list of name=value or name:value pairs, 
for example Accept:application\/json. Whitespace around each name and value is 
removed. A value that cont [...]
+    "httpUrl": { "index": 7, "kind": "parameter", "displayName": "Http Url", 
"group": "consumer", "label": "consumer", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The URL that kind http reads from, which the 
consumer opens with java.net.URLConnection. Without scanStream, the consumer 
opens it when it starts, so a URL that cannot be reached fails the start." },
+    "initialPromptDelay": { "index": 8, "kind": "parameter", "displayName": 
"Initial Prompt Delay", "group": "consumer", "label": "consumer", "required": 
false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": 2000, "description": "The delay in 
milliseconds before the first prompt of promptMessage, used in place of 
promptDelay. It keeps the prompt apart from the log output that is written to 
System.out while the application  [...]
+    "promptDelay": { "index": 9, "kind": "parameter", "displayName": "Prompt 
Delay", "group": "consumer", "label": "consumer", "required": false, "type": 
"integer", "javaType": "long", "deprecated": false, "autowired": false, 
"secret": false, "description": "The delay in milliseconds before each prompt 
of promptMessage, except the first one when initialPromptDelay is set." },
+    "promptMessage": { "index": 10, "kind": "parameter", "displayName": 
"Prompt Message", "group": "consumer", "label": "consumer", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "description": "The text that the consumer 
prints to System.out before it reads each line from System.in, for example 
Enter a command: (no new line is added). Only printed for kind in, and not with 
scanStream." },
+    "readLine": { "index": 11, "kind": "parameter", "displayName": "Read 
Line", "group": "consumer", "label": "consumer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": true, "description": "Whether the consumer 
reads the stream line by line and creates an exchange with a String body for 
each line, or for each group of groupLines lines. If false, the consumer reads 
the stream to its end and creates on [...]
+    "retry": { "index": 12, "kind": "parameter", "displayName": "Retry", 
"group": "consumer", "label": "consumer", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": false, "description": "Whether the consumer opens the 
stream again at its end and after it failed to open or read it, somewhat like 
tail --retry. Only used with scanStream. A file is then read again from the 
beginning, and the request to http [...]
+    "scanStream": { "index": 13, "kind": "parameter", "displayName": "Scan 
Stream", "group": "consumer", "label": "consumer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "Whether the consumer 
keeps reading the stream after its end, like the Unix tail -f command, and 
waits scanStreamDelay each time it finds no new data. The consumer opens the 
stream in its reading thread, so a  [...]
+    "scanStreamDelay": { "index": 14, "kind": "parameter", "displayName": 
"Scan Stream Delay", "group": "consumer", "label": "consumer", "required": 
false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": 
false, "secret": false, "description": "The delay in milliseconds before the 
consumer reads again when it finds no new data in the stream. Only used with 
scanStream. After the stream could not be opened or read, the consumer waits at 
least one second." },
     "bridgeErrorHandler": { "index": 15, "kind": "parameter", "displayName": 
"Bridge Error Handler", "group": "consumer (advanced)", "label": 
"consumer,advanced", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Allows for bridging the consumer to the 
Camel routing Error Handler, which mean any exceptions (if possible) occurred 
while the Camel consumer is trying to pickup incoming [...]
     "exceptionHandler": { "index": 16, "kind": "parameter", "displayName": 
"Exception Handler", "group": "consumer (advanced)", "label": 
"consumer,advanced", "required": false, "type": "object", "javaType": 
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.", 
"deprecated": false, "autowired": false, "secret": false, "description": "To 
let the consumer use a custom ExceptionHandler. Notice if the option 
bridgeErrorHandler is enabled then this option is not in use. By de [...]
     "exchangePattern": { "index": 17, "kind": "parameter", "displayName": 
"Exchange Pattern", "group": "consumer (advanced)", "label": 
"consumer,advanced", "required": false, "type": "enum", "javaType": 
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ], 
"deprecated": false, "autowired": false, "secret": false, "description": "Sets 
the exchange pattern when the consumer creates an exchange." },
-    "appendNewLine": { "index": 18, "kind": "parameter", "displayName": 
"Append New Line", "group": "producer", "label": "producer", "required": false, 
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": true, "description": "Whether to append 
a new line character at end of output." },
-    "autoCloseCount": { "index": 19, "kind": "parameter", "displayName": "Auto 
Close Count", "group": "producer", "label": "producer", "required": false, 
"type": "integer", "javaType": "int", "deprecated": false, "autowired": false, 
"secret": false, "description": "Number of messages to process before closing 
stream on Producer side. Never close stream by default (only when Producer is 
stopped). If more messages are sent, the stream is reopened for another 
autoCloseCount batch." },
-    "closeOnDone": { "index": 20, "kind": "parameter", "displayName": "Close 
On Done", "group": "producer", "label": "producer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "This option is used in 
combination with Splitter and streaming to the same file. The idea is to keep 
the stream open and only close when the Splitter is done, to improve 
performance. Mind this requires tha [...]
-    "delay": { "index": 21, "kind": "parameter", "displayName": "Delay", 
"group": "producer", "label": "producer", "required": false, "type": "integer", 
"javaType": "long", "deprecated": false, "autowired": false, "secret": false, 
"description": "Initial delay in milliseconds before producing the stream." },
+    "appendNewLine": { "index": 18, "kind": "parameter", "displayName": 
"Append New Line", "group": "producer", "label": "producer", "required": false, 
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": true, "description": "Whether the 
producer writes the line separator of the operating system 
(System.lineSeparator()) after each message body." },
+    "autoCloseCount": { "index": 19, "kind": "parameter", "displayName": "Auto 
Close Count", "group": "producer", "label": "producer", "required": false, 
"type": "integer", "javaType": "int", "deprecated": false, "autowired": false, 
"secret": false, "description": "The number of messages after which the 
producer closes the file of kind file. The next message opens the file again 
for another batch of messages. If 0, the producer keeps the file open until it 
stops. System.out and System.er [...]
+    "closeOnDone": { "index": 20, "kind": "parameter", "displayName": "Close 
On Done", "group": "producer", "label": "producer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "Whether the producer 
closes the file of kind file after the last message of a Splitter, which is the 
message with the exchange property CamelSplitComplete set to true. The next 
message opens the file again [...]
+    "delay": { "index": 21, "kind": "parameter", "displayName": "Delay", 
"group": "producer", "label": "producer", "required": false, "type": "integer", 
"javaType": "long", "deprecated": false, "autowired": false, "secret": false, 
"description": "The delay in milliseconds before the producer writes each 
message." },
     "lazyStartProducer": { "index": 22, "kind": "parameter", "displayName": 
"Lazy Start Producer", "group": "producer (advanced)", "label": 
"producer,advanced", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Whether the producer should be started 
lazy (on the first message). By starting lazy you can use this to allow 
CamelContext and routes to startup in situations where a produ [...]
-    "readTimeout": { "index": 23, "kind": "parameter", "displayName": "Read 
Timeout", "group": "advanced", "label": "advanced", "required": false, "type": 
"integer", "javaType": "int", "deprecated": false, "autowired": false, 
"secret": false, "description": "Sets the read timeout to a specified timeout, 
in milliseconds. A non-zero value specifies the timeout when reading from Input 
stream when a connection is established to a resource. If the timeout expires 
before there is data availabl [...]
+    "readTimeout": { "index": 23, "kind": "parameter", "displayName": "Read 
Timeout", "group": "advanced", "label": "advanced", "required": false, "type": 
"integer", "javaType": "int", "deprecated": false, "autowired": false, 
"secret": false, "description": "Not used: the component applies no read 
timeout to any stream, including the connection to httpUrl." }
   }
 }
diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/stream-component.adoc
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/stream-component.adoc
index 5ff54ffa104d..43973f2d4db2 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/stream-component.adoc
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/stream-component.adoc
@@ -2,7 +2,7 @@
 :doctitle: Stream
 :shortname: stream
 :artifactid: camel-stream
-:description: Read from system-in and write to system-out and system-err 
streams.
+:description: Read from System.in, a file or an HTTP URL, and write to 
System.out, System.err, a file or an output stream in a message header.
 :since: 1.3
 :supportlevel: Stable
 :tabs-sync-option:
diff --git 
a/components/camel-stream/src/generated/resources/META-INF/org/apache/camel/component/stream/stream.json
 
b/components/camel-stream/src/generated/resources/META-INF/org/apache/camel/component/stream/stream.json
index 93da0a8c74ff..b49fa82143e7 100644
--- 
a/components/camel-stream/src/generated/resources/META-INF/org/apache/camel/component/stream/stream.json
+++ 
b/components/camel-stream/src/generated/resources/META-INF/org/apache/camel/component/stream/stream.json
@@ -3,7 +3,7 @@
     "kind": "component",
     "name": "stream",
     "title": "Stream",
-    "description": "Read from system-in and write to system-out and system-err 
streams.",
+    "description": "Read from System.in, a file or an HTTP URL, and write to 
System.out, System.err, a file or an output stream in a message header.",
     "deprecated": false,
     "firstVersion": "1.3.0",
     "label": "file,core",
@@ -29,8 +29,8 @@
     "autowiredEnabled": { "index": 2, "kind": "property", "displayName": 
"Autowired Enabled", "group": "advanced", "label": "advanced", "required": 
false, "type": "boolean", "javaType": "boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": true, "description": 
"Whether autowiring is enabled. This is used for automatic autowiring options 
(the option must be marked as autowired) by looking up in the registry to find 
if there is a single instance of matching t [...]
   },
   "headers": {
-    "CamelStreamIndex": { "index": 0, "kind": "header", "displayName": "", 
"group": "consumer", "label": "consumer", "required": false, "javaType": 
"long", "deprecated": false, "autowired": false, "secret": false, 
"description": "The index", "constantName": 
"org.apache.camel.component.stream.StreamConstants#STREAM_INDEX" },
-    "CamelStreamComplete": { "index": 1, "kind": "header", "displayName": "", 
"group": "consumer", "label": "consumer", "required": false, "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"description": "Is complete", "constantName": 
"org.apache.camel.component.stream.StreamConstants#STREAM_COMPLETE" }
+    "CamelStreamIndex": { "index": 0, "kind": "header", "displayName": "", 
"group": "consumer", "label": "consumer", "required": false, "javaType": 
"long", "deprecated": false, "autowired": false, "secret": false, 
"description": "The index of the exchange in the stream, starting at 0 and 
counting each exchange that the consumer creates: a line, a group of lines, or 
the bytes of one read. With scanStream and retry, the count goes on after the 
stream is opened again.", "constantName": "org [...]
+    "CamelStreamComplete": { "index": 1, "kind": "header", "displayName": "", 
"group": "consumer", "label": "consumer", "required": false, "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"description": "Whether the exchange is the last one of the stream. The 
consumer reads one line ahead to know it, except for kind in, where it is true 
for each line. Always false with scanStream, as a scanned stream never ends.", 
"constantName": "org.apache.camel.componen [...]
   },
   "bodyTypes": {
     "consumerOut": { "carriers": [ "text" ], "javaType": "java.lang.String", 
"dependsOn": [ "groupLines" ], "byOption": [ { "option": "readLine", "value": 
"false", "carriers": [ "bytes" ], "javaType": "byte[]" } ], "description": 
"Each line of the stream as text. With groupLines, a List of the lines; with 
readLine=false, all the bytes of the stream (with scanStream, the bytes read in 
one scan)" },
@@ -38,29 +38,29 @@
     "producerOut": { "carriers": [ "unchanged" ] }
   },
   "properties": {
-    "kind": { "index": 0, "kind": "path", "displayName": "Kind", "group": 
"common", "label": "", "required": true, "type": "enum", "javaType": 
"java.lang.String", "enum": [ "in", "out", "err", "header", "file", "http" ], 
"deprecated": false, "autowired": false, "secret": false, "description": "Kind 
of stream to use such as System.in, System.out, a file, or a http url." },
-    "encoding": { "index": 1, "kind": "parameter", "displayName": "Encoding", 
"group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "You can configure the encoding (is a charset 
name) to use text-based streams (for example, message body is a String object). 
If not provided, Camel uses the JVM default Charset." },
-    "fileName": { "index": 2, "kind": "parameter", "displayName": "File Name", 
"group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "When using the stream:file URI format, this 
option specifies the filename to stream to\/from." },
-    "fileWatcher": { "index": 3, "kind": "parameter", "displayName": "File 
Watcher", "group": "consumer", "label": "consumer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "To use JVM file watcher 
to listen for file change events to support re-loading files that may be 
overwritten, somewhat like tail --retry" },
-    "groupLines": { "index": 4, "kind": "parameter", "displayName": "Group 
Lines", "group": "consumer", "label": "consumer", "required": false, "type": 
"integer", "javaType": "int", "deprecated": false, "autowired": false, 
"secret": false, "description": "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." },
-    "groupStrategy": { "index": 5, "kind": "parameter", "displayName": "Group 
Strategy", "group": "consumer", "label": "consumer", "required": false, "type": 
"object", "javaType": "org.apache.camel.component.stream.GroupStrategy", 
"deprecated": false, "autowired": false, "secret": false, "description": 
"Allows to use a custom GroupStrategy to control how to group lines." },
-    "httpHeaders": { "index": 6, "kind": "parameter", "displayName": "Http 
Headers", "group": "consumer", "label": "consumer", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "description": "When using stream:http format, this 
option specifies optional http headers, such as Accept: application\/json. 
Multiple headers can be separated by comma. The format of headers can be either 
HEADER=VALUE or HEADER:VALUE. I [...]
-    "httpUrl": { "index": 7, "kind": "parameter", "displayName": "Http Url", 
"group": "consumer", "label": "consumer", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "When using stream:http format, this option 
specifies the http url to stream from." },
-    "initialPromptDelay": { "index": 8, "kind": "parameter", "displayName": 
"Initial Prompt Delay", "group": "consumer", "label": "consumer", "required": 
false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": 2000, "description": "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 t [...]
-    "promptDelay": { "index": 9, "kind": "parameter", "displayName": "Prompt 
Delay", "group": "consumer", "label": "consumer", "required": false, "type": 
"integer", "javaType": "long", "deprecated": false, "autowired": false, 
"secret": false, "description": "Optional delay in milliseconds before showing 
the message prompt." },
-    "promptMessage": { "index": 10, "kind": "parameter", "displayName": 
"Prompt Message", "group": "consumer", "label": "consumer", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "description": "Message prompt to use when 
reading from stream:in; for example, you could set this to Enter a command:" },
-    "readLine": { "index": 11, "kind": "parameter", "displayName": "Read 
Line", "group": "consumer", "label": "consumer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": true, "description": "Whether to read the 
input stream in line mode (terminate by line breaks). Setting this to false, 
will instead read until the end of the stream. With scanStream, each exchange 
holds the bytes read in one scan." },
-    "retry": { "index": 12, "kind": "parameter", "displayName": "Retry", 
"group": "consumer", "label": "consumer", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": false, "description": "Will retry opening the stream if 
it's overwritten, somewhat like tail --retry If reading from files then you 
should also enable the fileWatcher option, to make it work reliable." },
-    "scanStream": { "index": 13, "kind": "parameter", "displayName": "Scan 
Stream", "group": "consumer", "label": "consumer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "To be used for 
continuously reading a stream such as the unix tail command." },
-    "scanStreamDelay": { "index": 14, "kind": "parameter", "displayName": 
"Scan Stream Delay", "group": "consumer", "label": "consumer", "required": 
false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": 
false, "secret": false, "description": "Delay in milliseconds between read 
attempts when using scanStream." },
+    "kind": { "index": 0, "kind": "path", "displayName": "Kind", "group": 
"common", "label": "", "required": true, "type": "enum", "javaType": 
"java.lang.String", "enum": [ "in", "out", "err", "header", "file", "http" ], 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
kind of stream. The consumer reads from in (System.in), file (the file of 
fileName) or http (the URL of httpUrl). The producer writes to out 
(System.out), err (System.err), file (the file of fi [...]
+    "encoding": { "index": 1, "kind": "parameter", "displayName": "Encoding", 
"group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The name of the charset of text, for example 
UTF-8. The consumer uses it to read lines with kind in or file, reads lines of 
kind http with the JVM default charset, and does not use it with 
readLine=false. The producer uses it to write a bo [...]
+    "fileName": { "index": 2, "kind": "parameter", "displayName": "File Name", 
"group": "common", "label": "", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The path of the file that kind file reads or 
writes. The consumer reads the file from the beginning; without scanStream, a 
file that cannot be read fails the start of the consumer. The producer appends 
to the file, and creates it and its  [...]
+    "fileWatcher": { "index": 3, "kind": "parameter", "displayName": "File 
Watcher", "group": "consumer", "label": "consumer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "Whether the consumer 
watches the directory of fileName with the JDK WatchService for the creation or 
modification of the file, for example when it is overwritten or rolled over. 
Only for kind file, and only  [...]
+    "groupLines": { "index": 4, "kind": "parameter", "displayName": "Group 
Lines", "group": "consumer", "label": "consumer", "required": false, "type": 
"integer", "javaType": "int", "deprecated": false, "autowired": false, 
"secret": false, "description": "The number of lines that the consumer puts in 
one exchange, whose body is the result of groupStrategy, by default a List of 
the lines. If 0, each line is one exchange. Without scanStream, the lines left 
at the end of the stream are sent [...]
+    "groupStrategy": { "index": 5, "kind": "parameter", "displayName": "Group 
Strategy", "group": "consumer", "label": "consumer", "required": false, "type": 
"object", "javaType": "org.apache.camel.component.stream.GroupStrategy", 
"deprecated": false, "autowired": false, "secret": false, "description": "The 
org.apache.camel.component.stream.GroupStrategy that turns a group of lines 
into the message body. Only used when groupLines is set. The default returns 
the List of the lines as is." },
+    "httpHeaders": { "index": 6, "kind": "parameter", "displayName": "Http 
Headers", "group": "consumer", "label": "consumer", "required": false, "type": 
"string", "javaType": "java.lang.String", "deprecated": false, "autowired": 
false, "secret": false, "description": "The request headers that the consumer 
sends to httpUrl, as a comma-separated list of name=value or name:value pairs, 
for example Accept:application\/json. Whitespace around each name and value is 
removed. A value that cont [...]
+    "httpUrl": { "index": 7, "kind": "parameter", "displayName": "Http Url", 
"group": "consumer", "label": "consumer", "required": false, "type": "string", 
"javaType": "java.lang.String", "deprecated": false, "autowired": false, 
"secret": false, "description": "The URL that kind http reads from, which the 
consumer opens with java.net.URLConnection. Without scanStream, the consumer 
opens it when it starts, so a URL that cannot be reached fails the start." },
+    "initialPromptDelay": { "index": 8, "kind": "parameter", "displayName": 
"Initial Prompt Delay", "group": "consumer", "label": "consumer", "required": 
false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": 2000, "description": "The delay in 
milliseconds before the first prompt of promptMessage, used in place of 
promptDelay. It keeps the prompt apart from the log output that is written to 
System.out while the application  [...]
+    "promptDelay": { "index": 9, "kind": "parameter", "displayName": "Prompt 
Delay", "group": "consumer", "label": "consumer", "required": false, "type": 
"integer", "javaType": "long", "deprecated": false, "autowired": false, 
"secret": false, "description": "The delay in milliseconds before each prompt 
of promptMessage, except the first one when initialPromptDelay is set." },
+    "promptMessage": { "index": 10, "kind": "parameter", "displayName": 
"Prompt Message", "group": "consumer", "label": "consumer", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "description": "The text that the consumer 
prints to System.out before it reads each line from System.in, for example 
Enter a command: (no new line is added). Only printed for kind in, and not with 
scanStream." },
+    "readLine": { "index": 11, "kind": "parameter", "displayName": "Read 
Line", "group": "consumer", "label": "consumer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": true, "description": "Whether the consumer 
reads the stream line by line and creates an exchange with a String body for 
each line, or for each group of groupLines lines. If false, the consumer reads 
the stream to its end and creates on [...]
+    "retry": { "index": 12, "kind": "parameter", "displayName": "Retry", 
"group": "consumer", "label": "consumer", "required": false, "type": "boolean", 
"javaType": "boolean", "deprecated": false, "autowired": false, "secret": 
false, "defaultValue": false, "description": "Whether the consumer opens the 
stream again at its end and after it failed to open or read it, somewhat like 
tail --retry. Only used with scanStream. A file is then read again from the 
beginning, and the request to http [...]
+    "scanStream": { "index": 13, "kind": "parameter", "displayName": "Scan 
Stream", "group": "consumer", "label": "consumer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "Whether the consumer 
keeps reading the stream after its end, like the Unix tail -f command, and 
waits scanStreamDelay each time it finds no new data. The consumer opens the 
stream in its reading thread, so a  [...]
+    "scanStreamDelay": { "index": 14, "kind": "parameter", "displayName": 
"Scan Stream Delay", "group": "consumer", "label": "consumer", "required": 
false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": 
false, "secret": false, "description": "The delay in milliseconds before the 
consumer reads again when it finds no new data in the stream. Only used with 
scanStream. After the stream could not be opened or read, the consumer waits at 
least one second." },
     "bridgeErrorHandler": { "index": 15, "kind": "parameter", "displayName": 
"Bridge Error Handler", "group": "consumer (advanced)", "label": 
"consumer,advanced", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Allows for bridging the consumer to the 
Camel routing Error Handler, which mean any exceptions (if possible) occurred 
while the Camel consumer is trying to pickup incoming [...]
     "exceptionHandler": { "index": 16, "kind": "parameter", "displayName": 
"Exception Handler", "group": "consumer (advanced)", "label": 
"consumer,advanced", "required": false, "type": "object", "javaType": 
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.", 
"deprecated": false, "autowired": false, "secret": false, "description": "To 
let the consumer use a custom ExceptionHandler. Notice if the option 
bridgeErrorHandler is enabled then this option is not in use. By de [...]
     "exchangePattern": { "index": 17, "kind": "parameter", "displayName": 
"Exchange Pattern", "group": "consumer (advanced)", "label": 
"consumer,advanced", "required": false, "type": "enum", "javaType": 
"org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ], 
"deprecated": false, "autowired": false, "secret": false, "description": "Sets 
the exchange pattern when the consumer creates an exchange." },
-    "appendNewLine": { "index": 18, "kind": "parameter", "displayName": 
"Append New Line", "group": "producer", "label": "producer", "required": false, 
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": true, "description": "Whether to append 
a new line character at end of output." },
-    "autoCloseCount": { "index": 19, "kind": "parameter", "displayName": "Auto 
Close Count", "group": "producer", "label": "producer", "required": false, 
"type": "integer", "javaType": "int", "deprecated": false, "autowired": false, 
"secret": false, "description": "Number of messages to process before closing 
stream on Producer side. Never close stream by default (only when Producer is 
stopped). If more messages are sent, the stream is reopened for another 
autoCloseCount batch." },
-    "closeOnDone": { "index": 20, "kind": "parameter", "displayName": "Close 
On Done", "group": "producer", "label": "producer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "This option is used in 
combination with Splitter and streaming to the same file. The idea is to keep 
the stream open and only close when the Splitter is done, to improve 
performance. Mind this requires tha [...]
-    "delay": { "index": 21, "kind": "parameter", "displayName": "Delay", 
"group": "producer", "label": "producer", "required": false, "type": "integer", 
"javaType": "long", "deprecated": false, "autowired": false, "secret": false, 
"description": "Initial delay in milliseconds before producing the stream." },
+    "appendNewLine": { "index": 18, "kind": "parameter", "displayName": 
"Append New Line", "group": "producer", "label": "producer", "required": false, 
"type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": 
false, "secret": false, "defaultValue": true, "description": "Whether the 
producer writes the line separator of the operating system 
(System.lineSeparator()) after each message body." },
+    "autoCloseCount": { "index": 19, "kind": "parameter", "displayName": "Auto 
Close Count", "group": "producer", "label": "producer", "required": false, 
"type": "integer", "javaType": "int", "deprecated": false, "autowired": false, 
"secret": false, "description": "The number of messages after which the 
producer closes the file of kind file. The next message opens the file again 
for another batch of messages. If 0, the producer keeps the file open until it 
stops. System.out and System.er [...]
+    "closeOnDone": { "index": 20, "kind": "parameter", "displayName": "Close 
On Done", "group": "producer", "label": "producer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false, 
"secret": false, "defaultValue": false, "description": "Whether the producer 
closes the file of kind file after the last message of a Splitter, which is the 
message with the exchange property CamelSplitComplete set to true. The next 
message opens the file again [...]
+    "delay": { "index": 21, "kind": "parameter", "displayName": "Delay", 
"group": "producer", "label": "producer", "required": false, "type": "integer", 
"javaType": "long", "deprecated": false, "autowired": false, "secret": false, 
"description": "The delay in milliseconds before the producer writes each 
message." },
     "lazyStartProducer": { "index": 22, "kind": "parameter", "displayName": 
"Lazy Start Producer", "group": "producer (advanced)", "label": 
"producer,advanced", "required": false, "type": "boolean", "javaType": 
"boolean", "deprecated": false, "autowired": false, "secret": false, 
"defaultValue": false, "description": "Whether the producer should be started 
lazy (on the first message). By starting lazy you can use this to allow 
CamelContext and routes to startup in situations where a produ [...]
-    "readTimeout": { "index": 23, "kind": "parameter", "displayName": "Read 
Timeout", "group": "advanced", "label": "advanced", "required": false, "type": 
"integer", "javaType": "int", "deprecated": false, "autowired": false, 
"secret": false, "description": "Sets the read timeout to a specified timeout, 
in milliseconds. A non-zero value specifies the timeout when reading from Input 
stream when a connection is established to a resource. If the timeout expires 
before there is data availabl [...]
+    "readTimeout": { "index": 23, "kind": "parameter", "displayName": "Read 
Timeout", "group": "advanced", "label": "advanced", "required": false, "type": 
"integer", "javaType": "int", "deprecated": false, "autowired": false, 
"secret": false, "description": "Not used: the component applies no read 
timeout to any stream, including the connection to httpUrl." }
   }
 }
diff --git a/components/camel-stream/src/main/docs/stream-component.adoc 
b/components/camel-stream/src/main/docs/stream-component.adoc
index 5ff54ffa104d..43973f2d4db2 100644
--- a/components/camel-stream/src/main/docs/stream-component.adoc
+++ b/components/camel-stream/src/main/docs/stream-component.adoc
@@ -2,7 +2,7 @@
 :doctitle: Stream
 :shortname: stream
 :artifactid: camel-stream
-:description: Read from system-in and write to system-out and system-err 
streams.
+:description: Read from System.in, a file or an HTTP URL, and write to 
System.out, System.err, a file or an output stream in a message header.
 :since: 1.3
 :supportlevel: Stable
 :tabs-sync-option:
diff --git 
a/components/camel-stream/src/main/java/org/apache/camel/component/stream/StreamConstants.java
 
b/components/camel-stream/src/main/java/org/apache/camel/component/stream/StreamConstants.java
index 43ab6ce6045f..ae6c0cdf7974 100644
--- 
a/components/camel-stream/src/main/java/org/apache/camel/component/stream/StreamConstants.java
+++ 
b/components/camel-stream/src/main/java/org/apache/camel/component/stream/StreamConstants.java
@@ -20,9 +20,17 @@ import org.apache.camel.spi.Metadata;
 
 public final class StreamConstants {
 
-    @Metadata(label = "consumer", description = "The index", javaType = "long")
+    @Metadata(label = "consumer",
+              description = "The index of the exchange in the stream, starting 
at 0 and counting each exchange"
+                            + " that the consumer creates: a line, a group of 
lines, or the bytes of one read. With"
+                            + " scanStream and retry, the count goes on after 
the stream is opened again.",
+              javaType = "long")
     public static final String STREAM_INDEX = "CamelStreamIndex";
-    @Metadata(label = "consumer", description = "Is complete", javaType = 
"boolean")
+    @Metadata(label = "consumer",
+              description = "Whether the exchange is the last one of the 
stream. The consumer reads one line ahead"
+                            + " to know it, except for kind in, where it is 
true for each line. Always false with"
+                            + " scanStream, as a scanned stream never ends.",
+              javaType = "boolean")
     public static final String STREAM_COMPLETE = "CamelStreamComplete";
 
     private StreamConstants() {
diff --git 
a/components/camel-stream/src/main/java/org/apache/camel/component/stream/StreamEndpoint.java
 
b/components/camel-stream/src/main/java/org/apache/camel/component/stream/StreamEndpoint.java
index 8b86e3cb92ce..a842bc75d384 100644
--- 
a/components/camel-stream/src/main/java/org/apache/camel/component/stream/StreamEndpoint.java
+++ 
b/components/camel-stream/src/main/java/org/apache/camel/component/stream/StreamEndpoint.java
@@ -35,7 +35,8 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 /**
- * Read from system-in and write to system-out and system-err streams.
+ * Read from System.in, a file or an HTTP URL, and write to System.out, 
System.err, a file or an output stream in a
+ * message header.
  */
 @UriEndpoint(firstVersion = "1.3.0", scheme = "stream", title = "Stream", 
syntax = "stream:kind",
              category = { Category.FILE, Category.CORE }, headersClass = 
StreamConstants.class)
@@ -56,46 +57,115 @@ public class StreamEndpoint extends DefaultEndpoint {
 
     private transient Charset charset;
 
-    @UriPath(enums = "in,out,err,header,file,http")
+    @UriPath(enums = "in,out,err,header,file,http",
+             description = "The kind of stream. The consumer reads from in 
(System.in), file (the file of"
+                           + " fileName) or http (the URL of httpUrl). The 
producer writes to out (System.out), err"
+                           + " (System.err), file (the file of fileName) or 
header (the java.io.OutputStream in the"
+                           + " stream header of the message). Any other kind 
fails when the consumer or producer is"
+                           + " created.")
     @Metadata(required = true)
     private String kind;
-    @UriParam
+    @UriParam(description = "The path of the file that kind file reads or 
writes. The consumer reads the file from"
+                            + " the beginning; without scanStream, a file that 
cannot be read fails the start of the"
+                            + " consumer. The producer appends to the file, 
and creates it and its parent directories"
+                            + " when they do not exist.")
     private String fileName;
-    @UriParam(label = "consumer")
+    @UriParam(label = "consumer",
+              description = "The URL that kind http reads from, which the 
consumer opens with"
+                            + " java.net.URLConnection. Without scanStream, 
the consumer opens it when it starts, so a"
+                            + " URL that cannot be reached fails the start.")
     private String httpUrl;
-    @UriParam(label = "consumer")
+    @UriParam(label = "consumer",
+              description = "The request headers that the consumer sends to 
httpUrl, as a comma-separated list of"
+                            + " name=value or name:value pairs, for example 
Accept:application/json. Whitespace around"
+                            + " each name and value is removed. A value that 
contains a comma, = or : is not"
+                            + " supported.")
     private String httpHeaders;
-    @UriParam(label = "consumer")
+    @UriParam(label = "consumer",
+              description = "Whether the consumer keeps reading the stream 
after its end, like the Unix tail -f"
+                            + " command, and waits scanStreamDelay each time 
it finds no new data. The consumer opens"
+                            + " the stream in its reading thread, so a file 
that does not exist yet or a URL that"
+                            + " cannot be reached does not fail the start, and 
is opened again later only with retry."
+                            + " A scanned stream never completes, so the 
CamelStreamComplete header is always false.")
     private boolean scanStream;
-    @UriParam(label = "consumer")
+    @UriParam(label = "consumer",
+              description = "Whether the consumer opens the stream again at 
its end and after it failed to open or"
+                            + " read it, somewhat like tail --retry. Only used 
with scanStream. A file is then read"
+                            + " again from the beginning, and the request to 
httpUrl is sent again. Without"
+                            + " fileWatcher this happens at each end of the 
stream, so enable fileWatcher to read a"
+                            + " file again only after it changed.")
     private boolean retry;
-    @UriParam(label = "consumer")
+    @UriParam(label = "consumer",
+              description = "Whether the consumer watches the directory of 
fileName with the JDK WatchService for"
+                            + " the creation or modification of the file, for 
example when it is overwritten or rolled"
+                            + " over. Only for kind file, and only used with 
scanStream and retry: the consumer then"
+                            + " opens the file again at its end only when it 
changed. A fileName without a directory"
+                            + " is not watched.")
     private boolean fileWatcher;
-    @UriParam(label = "producer")
+    @UriParam(label = "producer",
+              description = "Whether the producer closes the file of kind file 
after the last message of a"
+                            + " Splitter, which is the message with the 
exchange property CamelSplitComplete set to"
+                            + " true. The next message opens the file again. 
Without it and autoCloseCount, the"
+                            + " producer keeps the file open until it stops.")
     private boolean closeOnDone;
-    @UriParam(label = "consumer")
+    @UriParam(label = "consumer",
+              description = "The delay in milliseconds before the consumer 
reads again when it finds no new data in"
+                            + " the stream. Only used with scanStream. After 
the stream could not be opened or read,"
+                            + " the consumer waits at least one second.")
     private long scanStreamDelay;
-    @UriParam(label = "producer")
+    @UriParam(label = "producer",
+              description = "The delay in milliseconds before the producer 
writes each message.")
     private long delay;
-    @UriParam
+    @UriParam(description = "The name of the charset of text, for example 
UTF-8. The consumer uses it to read lines"
+                            + " with kind in or file, reads lines of kind http 
with the JVM default charset, and does"
+                            + " not use it with readLine=false. The producer 
uses it to write a body that is a String"
+                            + " or that cannot be converted to byte[]. If not 
set, the JVM default charset is used.")
     private String encoding;
-    @UriParam(label = "consumer")
+    @UriParam(label = "consumer",
+              description = "The text that the consumer prints to System.out 
before it reads each line from"
+                            + " System.in, for example Enter a command: (no 
new line is added). Only printed for kind"
+                            + " in, and not with scanStream.")
     private String promptMessage;
-    @UriParam(label = "consumer")
+    @UriParam(label = "consumer",
+              description = "The delay in milliseconds before each prompt of 
promptMessage, except the first one"
+                            + " when initialPromptDelay is set.")
     private long promptDelay;
-    @UriParam(label = "consumer", defaultValue = "2000")
+    @UriParam(label = "consumer", defaultValue = "2000",
+              description = "The delay in milliseconds before the first prompt 
of promptMessage, used in place of"
+                            + " promptDelay. It keeps the prompt apart from 
the log output that is written to"
+                            + " System.out while the application starts. If 0, 
the first prompt waits promptDelay.")
     private long initialPromptDelay = 2000;
-    @UriParam(label = "consumer")
+    @UriParam(label = "consumer",
+              description = "The number of lines that the consumer puts in one 
exchange, whose body is the result"
+                            + " of groupStrategy, by default a List of the 
lines. If 0, each line is one exchange."
+                            + " Without scanStream, the lines left at the end 
of the stream are sent as a smaller"
+                            + " group, and with scanStream a group is sent 
only when it is full. With kind in and"
+                            + " without scanStream, each line is sent alone. 
Not used with readLine=false.")
     private int groupLines;
-    @UriParam(label = "consumer", defaultValue = "true")
+    @UriParam(label = "consumer", defaultValue = "true",
+              description = "Whether the consumer reads the stream line by 
line and creates an exchange with a"
+                            + " String body for each line, or for each group 
of groupLines lines. If false, the"
+                            + " consumer reads the stream to its end and 
creates one exchange with all the bytes as"
+                            + " byte[] body; with scanStream, each exchange 
holds the bytes read in one scan.")
     private boolean readLine = true;
-    @UriParam(label = "producer", defaultValue = "true")
+    @UriParam(label = "producer", defaultValue = "true",
+              description = "Whether the producer writes the line separator of 
the operating system"
+                            + " (System.lineSeparator()) after each message 
body.")
     private boolean appendNewLine = true;
-    @UriParam(label = "producer")
+    @UriParam(label = "producer",
+              description = "The number of messages after which the producer 
closes the file of kind file. The next"
+                            + " message opens the file again for another batch 
of messages. If 0, the producer keeps"
+                            + " the file open until it stops. System.out and 
System.err are never closed, and the"
+                            + " stream of kind header is closed after each 
message.")
     private int autoCloseCount;
-    @UriParam(label = "consumer")
+    @UriParam(label = "consumer",
+              description = "The 
org.apache.camel.component.stream.GroupStrategy that turns a group of lines 
into"
+                            + " the message body. Only used when groupLines is 
set. The default returns the List of"
+                            + " the lines as is.")
     private GroupStrategy groupStrategy = new DefaultGroupStrategy();
-    @UriParam(label = "advanced")
+    @UriParam(label = "advanced",
+              description = "Not used: the component applies no read timeout 
to any stream, including the"
+                            + " connection to httpUrl.")
     private int readTimeout;
 
     public StreamEndpoint(String endpointUri, Component component) throws 
Exception {
@@ -124,9 +194,6 @@ public class StreamEndpoint extends DefaultEndpoint {
         return kind;
     }
 
-    /**
-     * Kind of stream to use such as System.in, System.out, a file, or a http 
url.
-     */
     public void setKind(String kind) {
         this.kind = kind;
     }
@@ -135,9 +202,6 @@ public class StreamEndpoint extends DefaultEndpoint {
         return fileName;
     }
 
-    /**
-     * When using the stream:file URI format, this option specifies the 
filename to stream to/from.
-     */
     public void setFileName(String fileName) {
         this.fileName = fileName;
     }
@@ -146,9 +210,6 @@ public class StreamEndpoint extends DefaultEndpoint {
         return httpUrl;
     }
 
-    /**
-     * When using stream:http format, this option specifies the http url to 
stream from.
-     */
     public void setHttpUrl(String httpUrl) {
         this.httpUrl = httpUrl;
     }
@@ -157,11 +218,6 @@ public class StreamEndpoint extends DefaultEndpoint {
         return httpHeaders;
     }
 
-    /**
-     * When using stream:http format, this option specifies optional http 
headers, such as Accept: application/json.
-     * Multiple headers can be separated by comma. The format of headers can 
be either "HEADER=VALUE" or "HEADER:VALUE".
-     * In accordance with the HTTP/1.1 specification, leading and/or trailing 
whitespace is ignored
-     */
     public void setHttpHeaders(String httpHeaders) {
         this.httpHeaders = httpHeaders;
     }
@@ -170,9 +226,6 @@ public class StreamEndpoint extends DefaultEndpoint {
         return delay;
     }
 
-    /**
-     * Initial delay in milliseconds before producing the stream.
-     */
     public void setDelay(long delay) {
         this.delay = delay;
     }
@@ -181,10 +234,6 @@ public class StreamEndpoint extends DefaultEndpoint {
         return encoding;
     }
 
-    /**
-     * You can configure the encoding (is a charset name) to use text-based 
streams (for example, message body is a
-     * String object). If not provided, Camel uses the JVM default Charset.
-     */
     public void setEncoding(String encoding) {
         this.encoding = encoding;
     }
@@ -193,9 +242,6 @@ public class StreamEndpoint extends DefaultEndpoint {
         return promptMessage;
     }
 
-    /**
-     * Message prompt to use when reading from stream:in; for example, you 
could set this to Enter a command:
-     */
     public void setPromptMessage(String promptMessage) {
         this.promptMessage = promptMessage;
     }
@@ -204,9 +250,6 @@ public class StreamEndpoint extends DefaultEndpoint {
         return promptDelay;
     }
 
-    /**
-     * Optional delay in milliseconds before showing the message prompt.
-     */
     public void setPromptDelay(long promptDelay) {
         this.promptDelay = promptDelay;
     }
@@ -215,10 +258,6 @@ public class StreamEndpoint extends DefaultEndpoint {
         return initialPromptDelay;
     }
 
-    /**
-     * 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.
-     */
     public void setInitialPromptDelay(long initialPromptDelay) {
         this.initialPromptDelay = initialPromptDelay;
     }
@@ -227,9 +266,6 @@ public class StreamEndpoint extends DefaultEndpoint {
         return scanStream;
     }
 
-    /**
-     * To be used for continuously reading a stream such as the unix tail 
command.
-     */
     public void setScanStream(boolean scanStream) {
         this.scanStream = scanStream;
     }
@@ -238,9 +274,6 @@ public class StreamEndpoint extends DefaultEndpoint {
         return groupStrategy;
     }
 
-    /**
-     * Allows to use a custom GroupStrategy to control how to group lines.
-     */
     public void setGroupStrategy(GroupStrategy strategy) {
         this.groupStrategy = strategy;
     }
@@ -249,11 +282,6 @@ public class StreamEndpoint extends DefaultEndpoint {
         return retry;
     }
 
-    /**
-     * Will retry opening the stream if it's overwritten, somewhat like tail 
--retry
-     * <p/>
-     * If reading from files then you should also enable the fileWatcher 
option, to make it work reliable.
-     */
     public void setRetry(boolean retry) {
         this.retry = retry;
     }
@@ -262,10 +290,6 @@ public class StreamEndpoint extends DefaultEndpoint {
         return fileWatcher;
     }
 
-    /**
-     * To use JVM file watcher to listen for file change events to support 
re-loading files that may be overwritten,
-     * somewhat like tail --retry
-     */
     public void setFileWatcher(boolean fileWatcher) {
         this.fileWatcher = fileWatcher;
     }
@@ -274,11 +298,6 @@ public class StreamEndpoint extends DefaultEndpoint {
         return closeOnDone;
     }
 
-    /**
-     * This option is used in combination with Splitter and streaming to the 
same file. The idea is to keep the stream
-     * open and only close when the Splitter is done, to improve performance. 
Mind this requires that you only stream to
-     * the same file, and not 2 or more files.
-     */
     public void setCloseOnDone(boolean closeOnDone) {
         this.closeOnDone = closeOnDone;
     }
@@ -287,9 +306,6 @@ public class StreamEndpoint extends DefaultEndpoint {
         return scanStreamDelay;
     }
 
-    /**
-     * Delay in milliseconds between read attempts when using scanStream.
-     */
     public void setScanStreamDelay(long scanStreamDelay) {
         this.scanStreamDelay = scanStreamDelay;
     }
@@ -298,10 +314,6 @@ public class StreamEndpoint extends DefaultEndpoint {
         return groupLines;
     }
 
-    /**
-     * 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.
-     */
     public void setGroupLines(int groupLines) {
         this.groupLines = groupLines;
     }
@@ -310,10 +322,6 @@ public class StreamEndpoint extends DefaultEndpoint {
         return readLine;
     }
 
-    /**
-     * Whether to read the input stream in line mode (terminate by line 
breaks). Setting this to false, will instead
-     * read until the end of the stream. With scanStream, each exchange holds 
the bytes read in one scan.
-     */
     public void setReadLine(boolean readLine) {
         this.readLine = readLine;
     }
@@ -322,10 +330,6 @@ public class StreamEndpoint extends DefaultEndpoint {
         return autoCloseCount;
     }
 
-    /**
-     * Number of messages to process before closing stream on Producer side. 
Never close stream by default (only when
-     * Producer is stopped). If more messages are sent, the stream is reopened 
for another autoCloseCount batch.
-     */
     public void setAutoCloseCount(int autoCloseCount) {
         this.autoCloseCount = autoCloseCount;
     }
@@ -334,9 +338,6 @@ public class StreamEndpoint extends DefaultEndpoint {
         return appendNewLine;
     }
 
-    /**
-     * Whether to append a new line character at end of output.
-     */
     public void setAppendNewLine(boolean appendNewLine) {
         this.appendNewLine = appendNewLine;
     }
@@ -349,12 +350,6 @@ public class StreamEndpoint extends DefaultEndpoint {
         return readTimeout;
     }
 
-    /**
-     * Sets the read timeout to a specified timeout, in milliseconds. A 
non-zero value specifies the timeout when
-     * reading from Input stream when a connection is established to a 
resource. If the timeout expires before there is
-     * data available for read, a java.net.SocketTimeoutException is raised. A 
timeout of zero is interpreted as an
-     * infinite timeout.
-     */
     public void setReadTimeout(int readTimeout) {
         this.readTimeout = readTimeout;
     }
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
index f8cb7497c7d6..005baf27a8d6 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
@@ -5111,7 +5111,8 @@ public interface ComponentsBuilderFactory {
     }
     /**
      * Stream (camel-stream)
-     * Read from system-in and write to system-out and system-err streams.
+     * Read from System.in, a file or an HTTP URL, and write to System.out,
+     * System.err, a file or an output stream in a message header.
      * 
      * Category: file,core
      * Since: 1.3
diff --git 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/StreamComponentBuilderFactory.java
 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/StreamComponentBuilderFactory.java
index 1868a5c0788d..b055a887ec9d 100644
--- 
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/StreamComponentBuilderFactory.java
+++ 
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/StreamComponentBuilderFactory.java
@@ -24,7 +24,8 @@ import org.apache.camel.builder.component.ComponentBuilder;
 import org.apache.camel.component.stream.StreamComponent;
 
 /**
- * Read from system-in and write to system-out and system-err streams.
+ * Read from System.in, a file or an HTTP URL, and write to System.out,
+ * System.err, a file or an output stream in a message header.
  * 
  * Generated by camel build tools - do NOT edit this file!
  */
@@ -33,7 +34,8 @@ public interface StreamComponentBuilderFactory {
 
     /**
      * Stream (camel-stream)
-     * Read from system-in and write to system-out and system-err streams.
+     * Read from System.in, a file or an HTTP URL, and write to System.out,
+     * System.err, a file or an output stream in a message header.
      * 
      * Category: file,core
      * Since: 1.3
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
index e4f7baa60812..cf1d6861aaac 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
@@ -4058,7 +4058,8 @@ public class EndpointHeaderBuilders {
     }
     /**
      * Stream (camel-stream)
-     * Read from system-in and write to system-out and system-err streams.
+     * Read from System.in, a file or an HTTP URL, and write to System.out,
+     * System.err, a file or an output stream in a message header.
      * 
      * Category: file,core
      * Since: 1.3
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index f1ad2c7f8e80..9fd8b041cdb2 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -17309,7 +17309,8 @@ public class StaticEndpointBuilders {
     }
     /**
      * Stream (camel-stream)
-     * Read from system-in and write to system-out and system-err streams.
+     * Read from System.in, a file or an HTTP URL, and write to System.out,
+     * System.err, a file or an output stream in a message header.
      * 
      * Category: file,core
      * Since: 1.3
@@ -17318,8 +17319,11 @@ public class StaticEndpointBuilders {
      * Syntax: <code>stream:kind</code>
      * 
      * Path parameter: kind (required)
-     * Kind of stream to use such as System.in, System.out, a file, or a http
-     * url.
+     * The kind of stream. The consumer reads from in (System.in), file (the
+     * file of fileName) or http (the URL of httpUrl). The producer writes to
+     * out (System.out), err (System.err), file (the file of fileName) or 
header
+     * (the java.io.OutputStream in the stream header of the message). Any 
other
+     * kind fails when the consumer or producer is created.
      * There are 6 enums and the value can be one of: in, out, err, header,
      * file, http
      * 
@@ -17331,7 +17335,8 @@ public class StaticEndpointBuilders {
     }
     /**
      * Stream (camel-stream)
-     * Read from system-in and write to system-out and system-err streams.
+     * Read from System.in, a file or an HTTP URL, and write to System.out,
+     * System.err, a file or an output stream in a message header.
      * 
      * Category: file,core
      * Since: 1.3
@@ -17340,8 +17345,11 @@ public class StaticEndpointBuilders {
      * Syntax: <code>stream:kind</code>
      * 
      * Path parameter: kind (required)
-     * Kind of stream to use such as System.in, System.out, a file, or a http
-     * url.
+     * The kind of stream. The consumer reads from in (System.in), file (the
+     * file of fileName) or http (the URL of httpUrl). The producer writes to
+     * out (System.out), err (System.err), file (the file of fileName) or 
header
+     * (the java.io.OutputStream in the stream header of the message). Any 
other
+     * kind fails when the consumer or producer is created.
      * There are 6 enums and the value can be one of: in, out, err, header,
      * file, http
      * 
diff --git 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/StreamEndpointBuilderFactory.java
 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/StreamEndpointBuilderFactory.java
index 9ed39472dc9b..00fddcf9efb8 100644
--- 
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/StreamEndpointBuilderFactory.java
+++ 
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/StreamEndpointBuilderFactory.java
@@ -27,7 +27,8 @@ import org.apache.camel.builder.EndpointProducerBuilder;
 import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
 
 /**
- * Read from system-in and write to system-out and system-err streams.
+ * Read from System.in, a file or an HTTP URL, and write to System.out,
+ * System.err, a file or an output stream in a message header.
  * 
  * Generated by camel build tools - do NOT edit this file!
  */
@@ -44,9 +45,11 @@ public interface StreamEndpointBuilderFactory {
             return (AdvancedStreamEndpointConsumerBuilder) this;
         }
         /**
-         * You can configure the encoding (is a charset name) to use text-based
-         * streams (for example, message body is a String object). If not
-         * provided, Camel uses the JVM default Charset.
+         * The name of the charset of text, for example UTF-8. The consumer 
uses
+         * it to read lines with kind in or file, reads lines of kind http with
+         * the JVM default charset, and does not use it with readLine=false. 
The
+         * producer uses it to write a body that is a String or that cannot be
+         * converted to byte[]. If not set, the JVM default charset is used.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
@@ -60,8 +63,11 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * When using the stream:file URI format, this option specifies the
-         * filename to stream to/from.
+         * The path of the file that kind file reads or writes. The consumer
+         * reads the file from the beginning; without scanStream, a file that
+         * cannot be read fails the start of the consumer. The producer appends
+         * to the file, and creates it and its parent directories when they do
+         * not exist.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
@@ -75,8 +81,12 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * To use JVM file watcher to listen for file change events to support
-         * re-loading files that may be overwritten, somewhat like tail 
--retry.
+         * Whether the consumer watches the directory of fileName with the JDK
+         * WatchService for the creation or modification of the file, for
+         * example when it is overwritten or rolled over. Only for kind file,
+         * and only used with scanStream and retry: the consumer then opens the
+         * file again at its end only when it changed. A fileName without a
+         * directory is not watched.
          * 
          * The option is a: <code>boolean</code> type.
          * 
@@ -91,8 +101,12 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * To use JVM file watcher to listen for file change events to support
-         * re-loading files that may be overwritten, somewhat like tail 
--retry.
+         * Whether the consumer watches the directory of fileName with the JDK
+         * WatchService for the creation or modification of the file, for
+         * example when it is overwritten or rolled over. Only for kind file,
+         * and only used with scanStream and retry: the consumer then opens the
+         * file again at its end only when it changed. A fileName without a
+         * directory is not watched.
          * 
          * The option will be converted to a <code>boolean</code> type.
          * 
@@ -107,9 +121,13 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * 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.
+         * The number of lines that the consumer puts in one exchange, whose
+         * body is the result of groupStrategy, by default a List of the lines.
+         * If 0, each line is one exchange. Without scanStream, the lines left
+         * at the end of the stream are sent as a smaller group, and with
+         * scanStream a group is sent only when it is full. With kind in and
+         * without scanStream, each line is sent alone. Not used with
+         * readLine=false.
          * 
          * The option is a: <code>int</code> type.
          * 
@@ -123,9 +141,13 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * 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.
+         * The number of lines that the consumer puts in one exchange, whose
+         * body is the result of groupStrategy, by default a List of the lines.
+         * If 0, each line is one exchange. Without scanStream, the lines left
+         * at the end of the stream are sent as a smaller group, and with
+         * scanStream a group is sent only when it is full. With kind in and
+         * without scanStream, each line is sent alone. Not used with
+         * readLine=false.
          * 
          * The option will be converted to a <code>int</code> type.
          * 
@@ -139,7 +161,9 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * Allows to use a custom GroupStrategy to control how to group lines.
+         * The org.apache.camel.component.stream.GroupStrategy that turns a
+         * group of lines into the message body. Only used when groupLines is
+         * set. The default returns the List of the lines as is.
          * 
          * The option is a:
          * <code>org.apache.camel.component.stream.GroupStrategy</code> type.
@@ -154,7 +178,9 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * Allows to use a custom GroupStrategy to control how to group lines.
+         * The org.apache.camel.component.stream.GroupStrategy that turns a
+         * group of lines into the message body. Only used when groupLines is
+         * set. The default returns the List of the lines as is.
          * 
          * The option will be converted to a
          * <code>org.apache.camel.component.stream.GroupStrategy</code> type.
@@ -169,11 +195,10 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * When using stream:http format, this option specifies optional http
-         * headers, such as Accept: application/json. Multiple headers can be
-         * separated by comma. The format of headers can be either HEADER=VALUE
-         * or HEADER:VALUE. In accordance with the HTTP/1.1 specification,
-         * leading and/or trailing whitespace is ignored.
+         * The request headers that the consumer sends to httpUrl, as a
+         * comma-separated list of name=value or name:value pairs, for example
+         * Accept:application/json. Whitespace around each name and value is
+         * removed. A value that contains a comma, = or : is not supported.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
@@ -187,8 +212,9 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * When using stream:http format, this option specifies the http url to
-         * stream from.
+         * The URL that kind http reads from, which the consumer opens with
+         * java.net.URLConnection. Without scanStream, the consumer opens it
+         * when it starts, so a URL that cannot be reached fails the start.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
@@ -202,10 +228,10 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * 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.
+         * The delay in milliseconds before the first prompt of promptMessage,
+         * used in place of promptDelay. It keeps the prompt apart from the log
+         * output that is written to System.out while the application starts. 
If
+         * 0, the first prompt waits promptDelay.
          * 
          * The option is a: <code>long</code> type.
          * 
@@ -220,10 +246,10 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * 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.
+         * The delay in milliseconds before the first prompt of promptMessage,
+         * used in place of promptDelay. It keeps the prompt apart from the log
+         * output that is written to System.out while the application starts. 
If
+         * 0, the first prompt waits promptDelay.
          * 
          * The option will be converted to a <code>long</code> type.
          * 
@@ -238,7 +264,8 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * Optional delay in milliseconds before showing the message prompt.
+         * The delay in milliseconds before each prompt of promptMessage, 
except
+         * the first one when initialPromptDelay is set.
          * 
          * The option is a: <code>long</code> type.
          * 
@@ -252,7 +279,8 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * Optional delay in milliseconds before showing the message prompt.
+         * The delay in milliseconds before each prompt of promptMessage, 
except
+         * the first one when initialPromptDelay is set.
          * 
          * The option will be converted to a <code>long</code> type.
          * 
@@ -266,8 +294,9 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * Message prompt to use when reading from stream:in; for example, you
-         * could set this to Enter a command:.
+         * The text that the consumer prints to System.out before it reads each
+         * line from System.in, for example Enter a command: (no new line is
+         * added). Only printed for kind in, and not with scanStream.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
@@ -281,10 +310,11 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * Whether to read the input stream in line mode (terminate by line
-         * breaks). Setting this to false, will instead read until the end of
-         * the stream. With scanStream, each exchange holds the bytes read in
-         * one scan.
+         * Whether the consumer reads the stream line by line and creates an
+         * exchange with a String body for each line, or for each group of
+         * groupLines lines. If false, the consumer reads the stream to its end
+         * and creates one exchange with all the bytes as byte[] body; with
+         * scanStream, each exchange holds the bytes read in one scan.
          * 
          * The option is a: <code>boolean</code> type.
          * 
@@ -299,10 +329,11 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * Whether to read the input stream in line mode (terminate by line
-         * breaks). Setting this to false, will instead read until the end of
-         * the stream. With scanStream, each exchange holds the bytes read in
-         * one scan.
+         * Whether the consumer reads the stream line by line and creates an
+         * exchange with a String body for each line, or for each group of
+         * groupLines lines. If false, the consumer reads the stream to its end
+         * and creates one exchange with all the bytes as byte[] body; with
+         * scanStream, each exchange holds the bytes read in one scan.
          * 
          * The option will be converted to a <code>boolean</code> type.
          * 
@@ -317,9 +348,12 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * Will retry opening the stream if it's overwritten, somewhat like 
tail
-         * --retry If reading from files then you should also enable the
-         * fileWatcher option, to make it work reliable.
+         * Whether the consumer opens the stream again at its end and after it
+         * failed to open or read it, somewhat like tail --retry. Only used 
with
+         * scanStream. A file is then read again from the beginning, and the
+         * request to httpUrl is sent again. Without fileWatcher this happens 
at
+         * each end of the stream, so enable fileWatcher to read a file again
+         * only after it changed.
          * 
          * The option is a: <code>boolean</code> type.
          * 
@@ -334,9 +368,12 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * Will retry opening the stream if it's overwritten, somewhat like 
tail
-         * --retry If reading from files then you should also enable the
-         * fileWatcher option, to make it work reliable.
+         * Whether the consumer opens the stream again at its end and after it
+         * failed to open or read it, somewhat like tail --retry. Only used 
with
+         * scanStream. A file is then read again from the beginning, and the
+         * request to httpUrl is sent again. Without fileWatcher this happens 
at
+         * each end of the stream, so enable fileWatcher to read a file again
+         * only after it changed.
          * 
          * The option will be converted to a <code>boolean</code> type.
          * 
@@ -351,8 +388,13 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * To be used for continuously reading a stream such as the unix tail
-         * command.
+         * Whether the consumer keeps reading the stream after its end, like 
the
+         * Unix tail -f command, and waits scanStreamDelay each time it finds 
no
+         * new data. The consumer opens the stream in its reading thread, so a
+         * file that does not exist yet or a URL that cannot be reached does 
not
+         * fail the start, and is opened again later only with retry. A scanned
+         * stream never completes, so the CamelStreamComplete header is always
+         * false.
          * 
          * The option is a: <code>boolean</code> type.
          * 
@@ -367,8 +409,13 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * To be used for continuously reading a stream such as the unix tail
-         * command.
+         * Whether the consumer keeps reading the stream after its end, like 
the
+         * Unix tail -f command, and waits scanStreamDelay each time it finds 
no
+         * new data. The consumer opens the stream in its reading thread, so a
+         * file that does not exist yet or a URL that cannot be reached does 
not
+         * fail the start, and is opened again later only with retry. A scanned
+         * stream never completes, so the CamelStreamComplete header is always
+         * false.
          * 
          * The option will be converted to a <code>boolean</code> type.
          * 
@@ -383,7 +430,10 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * Delay in milliseconds between read attempts when using scanStream.
+         * The delay in milliseconds before the consumer reads again when it
+         * finds no new data in the stream. Only used with scanStream. After 
the
+         * stream could not be opened or read, the consumer waits at least one
+         * second.
          * 
          * The option is a: <code>long</code> type.
          * 
@@ -397,7 +447,10 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * Delay in milliseconds between read attempts when using scanStream.
+         * The delay in milliseconds before the consumer reads again when it
+         * finds no new data in the stream. Only used with scanStream. After 
the
+         * stream could not be opened or read, the consumer waits at least one
+         * second.
          * 
          * The option will be converted to a <code>long</code> type.
          * 
@@ -539,12 +592,8 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * Sets the read timeout to a specified timeout, in milliseconds. A
-         * non-zero value specifies the timeout when reading from Input stream
-         * when a connection is established to a resource. If the timeout
-         * expires before there is data available for read, a
-         * java.net.SocketTimeoutException is raised. A timeout of zero is
-         * interpreted as an infinite timeout.
+         * Not used: the component applies no read timeout to any stream,
+         * including the connection to httpUrl.
          * 
          * The option is a: <code>int</code> type.
          * 
@@ -558,12 +607,8 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * Sets the read timeout to a specified timeout, in milliseconds. A
-         * non-zero value specifies the timeout when reading from Input stream
-         * when a connection is established to a resource. If the timeout
-         * expires before there is data available for read, a
-         * java.net.SocketTimeoutException is raised. A timeout of zero is
-         * interpreted as an infinite timeout.
+         * Not used: the component applies no read timeout to any stream,
+         * including the connection to httpUrl.
          * 
          * The option will be converted to a <code>int</code> type.
          * 
@@ -589,9 +634,11 @@ public interface StreamEndpointBuilderFactory {
         }
 
         /**
-         * You can configure the encoding (is a charset name) to use text-based
-         * streams (for example, message body is a String object). If not
-         * provided, Camel uses the JVM default Charset.
+         * The name of the charset of text, for example UTF-8. The consumer 
uses
+         * it to read lines with kind in or file, reads lines of kind http with
+         * the JVM default charset, and does not use it with readLine=false. 
The
+         * producer uses it to write a body that is a String or that cannot be
+         * converted to byte[]. If not set, the JVM default charset is used.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
@@ -605,8 +652,11 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * When using the stream:file URI format, this option specifies the
-         * filename to stream to/from.
+         * The path of the file that kind file reads or writes. The consumer
+         * reads the file from the beginning; without scanStream, a file that
+         * cannot be read fails the start of the consumer. The producer appends
+         * to the file, and creates it and its parent directories when they do
+         * not exist.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
@@ -620,7 +670,8 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * Whether to append a new line character at end of output.
+         * Whether the producer writes the line separator of the operating
+         * system (System.lineSeparator()) after each message body.
          * 
          * The option is a: <code>boolean</code> type.
          * 
@@ -635,7 +686,8 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * Whether to append a new line character at end of output.
+         * Whether the producer writes the line separator of the operating
+         * system (System.lineSeparator()) after each message body.
          * 
          * The option will be converted to a <code>boolean</code> type.
          * 
@@ -650,10 +702,11 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * Number of messages to process before closing stream on Producer 
side.
-         * Never close stream by default (only when Producer is stopped). If
-         * more messages are sent, the stream is reopened for another
-         * autoCloseCount batch.
+         * The number of messages after which the producer closes the file of
+         * kind file. The next message opens the file again for another batch 
of
+         * messages. If 0, the producer keeps the file open until it stops.
+         * System.out and System.err are never closed, and the stream of kind
+         * header is closed after each message.
          * 
          * The option is a: <code>int</code> type.
          * 
@@ -667,10 +720,11 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * Number of messages to process before closing stream on Producer 
side.
-         * Never close stream by default (only when Producer is stopped). If
-         * more messages are sent, the stream is reopened for another
-         * autoCloseCount batch.
+         * The number of messages after which the producer closes the file of
+         * kind file. The next message opens the file again for another batch 
of
+         * messages. If 0, the producer keeps the file open until it stops.
+         * System.out and System.err are never closed, and the stream of kind
+         * header is closed after each message.
          * 
          * The option will be converted to a <code>int</code> type.
          * 
@@ -684,10 +738,11 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * This option is used in combination with Splitter and streaming to 
the
-         * same file. The idea is to keep the stream open and only close when
-         * the Splitter is done, to improve performance. Mind this requires 
that
-         * you only stream to the same file, and not 2 or more files.
+         * Whether the producer closes the file of kind file after the last
+         * message of a Splitter, which is the message with the exchange
+         * property CamelSplitComplete set to true. The next message opens the
+         * file again. Without it and autoCloseCount, the producer keeps the
+         * file open until it stops.
          * 
          * The option is a: <code>boolean</code> type.
          * 
@@ -702,10 +757,11 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * This option is used in combination with Splitter and streaming to 
the
-         * same file. The idea is to keep the stream open and only close when
-         * the Splitter is done, to improve performance. Mind this requires 
that
-         * you only stream to the same file, and not 2 or more files.
+         * Whether the producer closes the file of kind file after the last
+         * message of a Splitter, which is the message with the exchange
+         * property CamelSplitComplete set to true. The next message opens the
+         * file again. Without it and autoCloseCount, the producer keeps the
+         * file open until it stops.
          * 
          * The option will be converted to a <code>boolean</code> type.
          * 
@@ -720,7 +776,7 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * Initial delay in milliseconds before producing the stream.
+         * The delay in milliseconds before the producer writes each message.
          * 
          * The option is a: <code>long</code> type.
          * 
@@ -734,7 +790,7 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * Initial delay in milliseconds before producing the stream.
+         * The delay in milliseconds before the producer writes each message.
          * 
          * The option will be converted to a <code>long</code> type.
          * 
@@ -804,12 +860,8 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * Sets the read timeout to a specified timeout, in milliseconds. A
-         * non-zero value specifies the timeout when reading from Input stream
-         * when a connection is established to a resource. If the timeout
-         * expires before there is data available for read, a
-         * java.net.SocketTimeoutException is raised. A timeout of zero is
-         * interpreted as an infinite timeout.
+         * Not used: the component applies no read timeout to any stream,
+         * including the connection to httpUrl.
          * 
          * The option is a: <code>int</code> type.
          * 
@@ -823,12 +875,8 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * Sets the read timeout to a specified timeout, in milliseconds. A
-         * non-zero value specifies the timeout when reading from Input stream
-         * when a connection is established to a resource. If the timeout
-         * expires before there is data available for read, a
-         * java.net.SocketTimeoutException is raised. A timeout of zero is
-         * interpreted as an infinite timeout.
+         * Not used: the component applies no read timeout to any stream,
+         * including the connection to httpUrl.
          * 
          * The option will be converted to a <code>int</code> type.
          * 
@@ -855,9 +903,11 @@ public interface StreamEndpointBuilderFactory {
         }
 
         /**
-         * You can configure the encoding (is a charset name) to use text-based
-         * streams (for example, message body is a String object). If not
-         * provided, Camel uses the JVM default Charset.
+         * The name of the charset of text, for example UTF-8. The consumer 
uses
+         * it to read lines with kind in or file, reads lines of kind http with
+         * the JVM default charset, and does not use it with readLine=false. 
The
+         * producer uses it to write a body that is a String or that cannot be
+         * converted to byte[]. If not set, the JVM default charset is used.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
@@ -871,8 +921,11 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * When using the stream:file URI format, this option specifies the
-         * filename to stream to/from.
+         * The path of the file that kind file reads or writes. The consumer
+         * reads the file from the beginning; without scanStream, a file that
+         * cannot be read fails the start of the consumer. The producer appends
+         * to the file, and creates it and its parent directories when they do
+         * not exist.
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 
@@ -899,12 +952,8 @@ public interface StreamEndpointBuilderFactory {
         }
 
         /**
-         * Sets the read timeout to a specified timeout, in milliseconds. A
-         * non-zero value specifies the timeout when reading from Input stream
-         * when a connection is established to a resource. If the timeout
-         * expires before there is data available for read, a
-         * java.net.SocketTimeoutException is raised. A timeout of zero is
-         * interpreted as an infinite timeout.
+         * Not used: the component applies no read timeout to any stream,
+         * including the connection to httpUrl.
          * 
          * The option is a: <code>int</code> type.
          * 
@@ -918,12 +967,8 @@ public interface StreamEndpointBuilderFactory {
             return this;
         }
         /**
-         * Sets the read timeout to a specified timeout, in milliseconds. A
-         * non-zero value specifies the timeout when reading from Input stream
-         * when a connection is established to a resource. If the timeout
-         * expires before there is data available for read, a
-         * java.net.SocketTimeoutException is raised. A timeout of zero is
-         * interpreted as an infinite timeout.
+         * Not used: the component applies no read timeout to any stream,
+         * including the connection to httpUrl.
          * 
          * The option will be converted to a <code>int</code> type.
          * 
@@ -941,7 +986,8 @@ public interface StreamEndpointBuilderFactory {
     public interface StreamBuilders {
         /**
          * Stream (camel-stream)
-         * Read from system-in and write to system-out and system-err streams.
+         * Read from System.in, a file or an HTTP URL, and write to System.out,
+         * System.err, a file or an output stream in a message header.
          * 
          * Category: file,core
          * Since: 1.3
@@ -954,7 +1000,8 @@ public interface StreamEndpointBuilderFactory {
         }
         /**
          * Stream (camel-stream)
-         * Read from system-in and write to system-out and system-err streams.
+         * Read from System.in, a file or an HTTP URL, and write to System.out,
+         * System.err, a file or an output stream in a message header.
          * 
          * Category: file,core
          * Since: 1.3
@@ -963,8 +1010,12 @@ public interface StreamEndpointBuilderFactory {
          * Syntax: <code>stream:kind</code>
          * 
          * Path parameter: kind (required)
-         * Kind of stream to use such as System.in, System.out, a file, or a
-         * http url.
+         * The kind of stream. The consumer reads from in (System.in), file 
(the
+         * file of fileName) or http (the URL of httpUrl). The producer writes
+         * to out (System.out), err (System.err), file (the file of fileName) 
or
+         * header (the java.io.OutputStream in the stream header of the
+         * message). Any other kind fails when the consumer or producer is
+         * created.
          * There are 6 enums and the value can be one of: in, out, err, header,
          * file, http
          * 
@@ -976,7 +1027,8 @@ public interface StreamEndpointBuilderFactory {
         }
         /**
          * Stream (camel-stream)
-         * Read from system-in and write to system-out and system-err streams.
+         * Read from System.in, a file or an HTTP URL, and write to System.out,
+         * System.err, a file or an output stream in a message header.
          * 
          * Category: file,core
          * Since: 1.3
@@ -985,8 +1037,12 @@ public interface StreamEndpointBuilderFactory {
          * Syntax: <code>stream:kind</code>
          * 
          * Path parameter: kind (required)
-         * Kind of stream to use such as System.in, System.out, a file, or a
-         * http url.
+         * The kind of stream. The consumer reads from in (System.in), file 
(the
+         * file of fileName) or http (the URL of httpUrl). The producer writes
+         * to out (System.out), err (System.err), file (the file of fileName) 
or
+         * header (the java.io.OutputStream in the stream header of the
+         * message). Any other kind fails when the consumer or producer is
+         * created.
          * There are 6 enums and the value can be one of: in, out, err, header,
          * file, http
          * 
@@ -1011,7 +1067,10 @@ public interface StreamEndpointBuilderFactory {
         public static final StreamHeaderNameBuilder INSTANCE = new 
StreamHeaderNameBuilder();
 
         /**
-         * The index.
+         * The index of the exchange in the stream, starting at 0 and counting
+         * each exchange that the consumer creates: a line, a group of lines, 
or
+         * the bytes of one read. With scanStream and retry, the count goes on
+         * after the stream is opened again.
          * 
          * The option is a: {@code long} type.
          * 
@@ -1023,7 +1082,10 @@ public interface StreamEndpointBuilderFactory {
             return "CamelStreamIndex";
         }
         /**
-         * Is complete.
+         * Whether the exchange is the last one of the stream. The consumer
+         * reads one line ahead to know it, except for kind in, where it is 
true
+         * for each line. Always false with scanStream, as a scanned stream
+         * never ends.
          * 
          * The option is a: {@code boolean} type.
          * 
diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md
index a1a561bdadf9..0baba6513b3d 100644
--- a/tasks/component-descriptions.md
+++ b/tasks/component-descriptions.md
@@ -359,7 +359,7 @@ or removes its row.
 | camel-state-store | state-store |  |
 | camel-stax | stax |  |
 | camel-stitch | stitch |  |
-| camel-stream | stream |  |
+| camel-stream | stream | yes |
 | camel-stringtemplate | string-template |  |
 | camel-stripe | stripe |  |
 | camel-stub | stub |  |

Reply via email to