camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r819485 - in /websites/production/camel/content: book-component-appendix.html book-in-one-page.html cache/main.pageCache stream.html
Date Tue, 29 May 2012 10:21:08 GMT
Author: buildbot
Date: Tue May 29 10:21:08 2012
New Revision: 819485

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/book-component-appendix.html
    websites/production/camel/content/book-in-one-page.html
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/stream.html

Modified: websites/production/camel/content/book-component-appendix.html
==============================================================================
--- websites/production/camel/content/book-component-appendix.html (original)
+++ websites/production/camel/content/book-component-appendix.html Tue May 29 10:21:08 2012
@@ -15655,14 +15655,14 @@ stream:url[?options]
 
 <h3><a shape="rect" name="BookComponentAppendix-Options"></a>Options</h3>
 <div class="confluenceTableSmall"><div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1"
class="confluenceTh"> Name </th><th colspan="1" rowspan="1" class="confluenceTh">
Default Value </th><th colspan="1" rowspan="1" class="confluenceTh"> Description
</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>delay</tt>
</td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>0</tt>
</td><td colspan="1" rowspan="1" class="confluenceTd"> Initial delay in milliseconds
before consuming or producing the stream. </td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"> <tt>encoding</tt> </td><td colspan="1"
rowspan="1" class="confluenceTd"> <em>JVM Default</em> </td><td colspan="1"
rowspan="1" class="confluenceTd">  As of 1.4, you can configure the encoding (is a <a
shape="rect" class="external-link" href="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/Charset.html"
rel="nofollow">charset name</a>) to use text-based streams (for example, message
body is a <tt>String</tt> 
 object). If not provided, Camel uses the <a shape="rect" class="external-link" href="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/Charset.html#defaultCharset()"
rel="nofollow">JVM default Charset</a>. </td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"> <tt>promptMessage</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.0:</b> Message prompt
to use when reading from <tt>stream:in</tt>; for example, you could set this to
<tt>Enter a command:</tt> </td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"> <tt>promptDelay</tt> </td><td colspan="1" rowspan="1"
class="confluenceTd"> <tt>0</tt> </td><td colspan="1" rowspan="1"
class="confluenceTd"> <b>Camel 2.0:</b> Optional delay in milliseconds before
showing the message prompt. </td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"> <tt>initialPromptDelay</tt> </td><td colspan="1"
rowspan="1" class="conf
 luenceTd"> <tt>2000</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">
<b>Camel 2.0:</b> 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. </td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>fileName</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.0:</b> When using
the <tt>stream:file</tt> URI format, this option specifies the filename to stream
to/from. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">
<tt>scanStream</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">
<tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">
<b>Camel 2.0:</b> To be used for continuously reading a stream such as the unix
<tt>tail</tt> command. <br clear="none">
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1"
class="confluenceTh"> Name </th><th colspan="1" rowspan="1" class="confluenceTh">
Default Value </th><th colspan="1" rowspan="1" class="confluenceTh"> Description
</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>delay</tt>
</td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>0</tt>
</td><td colspan="1" rowspan="1" class="confluenceTd"> Initial delay in milliseconds
before consuming or producing the stream. </td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"> <tt>encoding</tt> </td><td colspan="1"
rowspan="1" class="confluenceTd"> <em>JVM Default</em> </td><td colspan="1"
rowspan="1" class="confluenceTd">  As of 1.4, you can configure the encoding (is a <a
shape="rect" class="external-link" href="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/Charset.html"
rel="nofollow">charset name</a>) to use text-based streams (for example, message
body is a <tt>String</tt> 
 object). If not provided, Camel uses the <a shape="rect" class="external-link" href="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/Charset.html#defaultCharset()"
rel="nofollow">JVM default Charset</a>. </td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"> <tt>promptMessage</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.0:</b> Message prompt
to use when reading from <tt>stream:in</tt>; for example, you could set this to
<tt>Enter a command:</tt> </td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"> <tt>promptDelay</tt> </td><td colspan="1" rowspan="1"
class="confluenceTd"> <tt>0</tt> </td><td colspan="1" rowspan="1"
class="confluenceTd"> <b>Camel 2.0:</b> Optional delay in milliseconds before
showing the message prompt. </td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"> <tt>initialPromptDelay</tt> </td><td colspan="1"
rowspan="1" class="conf
 luenceTd"> <tt>2000</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">
<b>Camel 2.0:</b> 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. </td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>fileName</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.0:</b> When using
the <tt>stream:file</tt> URI format, this option specifies the filename to stream
to/from. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">
<tt>url</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">
<tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">
<b>Camel 2.0:</b> When using the <tt>stream:url</tt> URI format, this
option specifies the URL to stream to/from. The input/output stream will be open
 ed using the <a shape="rect" class="external-link" href="http://docs.oracle.com/javase/6/docs/api/java/net/URLConnection.html"
rel="nofollow">JDK URLConnection</a> facility. </td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>scanStream</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.0:</b> To be used
for continuously reading a stream such as the unix <tt>tail</tt> command. <br
clear="none">
                                <b>Camel 2.4 to Camel 2.6:</b> will retry opening
the file if it is overwritten, somewhat like <tt>tail --retry</tt> </td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>retry</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.7:</b> will retry
opening the file if it's overwritten, somewhat like <tt>tail --retry</tt> </td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>scanStreamDelay</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>0</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.0:</b> Delay in milliseconds
between read attempts when using <tt>scanStream</tt>. </td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>groupLines</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>0</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.5:</b> To grou
 p X number of lines in the consumer. For example to group 10 lines and therefore only spit
out an <a shape="rect" href="exchange.html" title="Exchange">Exchange</a> with
10 lines, instead of 1 <a shape="rect" href="exchange.html" title="Exchange">Exchange</a>
per line. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">
<tt>autoCloseCount</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">
<tt>0</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">
<b>Camel 2.10.0:</b> (2.9.3 and 2.8.6) 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 <tt>autoCloseCount</tt>
batch. </td></tr></tbody></table>
 </div>
 </div>
 
 <h3><a shape="rect" name="BookComponentAppendix-Messagecontent"></a>Message
content</h3>
 
-<p>The <b>stream:</b> component supports either <tt>String</tt>
or <tt>byte[]</tt> for writing to streams. Just add either <tt>String</tt>
or <tt>byte[]</tt> content to the <tt>message.in.body</tt>.<br
clear="none">
+<p>The <b>stream:</b> component supports either <tt>String</tt>
or <tt>byte[]</tt> for writing to streams. Just add either <tt>String</tt>
or <tt>byte[]</tt> content to the <tt>message.in.body</tt>. Messages
sent to the <b>stream:</b> producer in binary mode are not followed by the newline
character (as opposed to the <tt>String</tt> messages).<br clear="none">
 The special <tt>stream:header</tt> URI is used for custom output streams. Just
add a <tt>java.io.OutputStream</tt> object to <tt>message.in.header</tt>
in the key <tt>header</tt>.<br clear="none">
 See samples for an example.</p>
 

Modified: websites/production/camel/content/book-in-one-page.html
==============================================================================
--- websites/production/camel/content/book-in-one-page.html (original)
+++ websites/production/camel/content/book-in-one-page.html Tue May 29 10:21:08 2012
@@ -36064,14 +36064,14 @@ stream:url[?options]
 
 <h3><a shape="rect" name="BookInOnePage-Options"></a>Options</h3>
 <div class="confluenceTableSmall"><div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1"
class="confluenceTh"> Name </th><th colspan="1" rowspan="1" class="confluenceTh">
Default Value </th><th colspan="1" rowspan="1" class="confluenceTh"> Description
</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>delay</tt>
</td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>0</tt>
</td><td colspan="1" rowspan="1" class="confluenceTd"> Initial delay in milliseconds
before consuming or producing the stream. </td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"> <tt>encoding</tt> </td><td colspan="1"
rowspan="1" class="confluenceTd"> <em>JVM Default</em> </td><td colspan="1"
rowspan="1" class="confluenceTd">  As of 1.4, you can configure the encoding (is a <a
shape="rect" class="external-link" href="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/Charset.html"
rel="nofollow">charset name</a>) to use text-based streams (for example, message
body is a <tt>String</tt> 
 object). If not provided, Camel uses the <a shape="rect" class="external-link" href="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/Charset.html#defaultCharset()"
rel="nofollow">JVM default Charset</a>. </td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"> <tt>promptMessage</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.0:</b> Message prompt
to use when reading from <tt>stream:in</tt>; for example, you could set this to
<tt>Enter a command:</tt> </td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"> <tt>promptDelay</tt> </td><td colspan="1" rowspan="1"
class="confluenceTd"> <tt>0</tt> </td><td colspan="1" rowspan="1"
class="confluenceTd"> <b>Camel 2.0:</b> Optional delay in milliseconds before
showing the message prompt. </td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"> <tt>initialPromptDelay</tt> </td><td colspan="1"
rowspan="1" class="conf
 luenceTd"> <tt>2000</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">
<b>Camel 2.0:</b> 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. </td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>fileName</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.0:</b> When using
the <tt>stream:file</tt> URI format, this option specifies the filename to stream
to/from. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">
<tt>scanStream</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">
<tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">
<b>Camel 2.0:</b> To be used for continuously reading a stream such as the unix
<tt>tail</tt> command. <br clear="none">
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1"
class="confluenceTh"> Name </th><th colspan="1" rowspan="1" class="confluenceTh">
Default Value </th><th colspan="1" rowspan="1" class="confluenceTh"> Description
</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>delay</tt>
</td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>0</tt>
</td><td colspan="1" rowspan="1" class="confluenceTd"> Initial delay in milliseconds
before consuming or producing the stream. </td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"> <tt>encoding</tt> </td><td colspan="1"
rowspan="1" class="confluenceTd"> <em>JVM Default</em> </td><td colspan="1"
rowspan="1" class="confluenceTd">  As of 1.4, you can configure the encoding (is a <a
shape="rect" class="external-link" href="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/Charset.html"
rel="nofollow">charset name</a>) to use text-based streams (for example, message
body is a <tt>String</tt> 
 object). If not provided, Camel uses the <a shape="rect" class="external-link" href="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/Charset.html#defaultCharset()"
rel="nofollow">JVM default Charset</a>. </td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"> <tt>promptMessage</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.0:</b> Message prompt
to use when reading from <tt>stream:in</tt>; for example, you could set this to
<tt>Enter a command:</tt> </td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"> <tt>promptDelay</tt> </td><td colspan="1" rowspan="1"
class="confluenceTd"> <tt>0</tt> </td><td colspan="1" rowspan="1"
class="confluenceTd"> <b>Camel 2.0:</b> Optional delay in milliseconds before
showing the message prompt. </td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"> <tt>initialPromptDelay</tt> </td><td colspan="1"
rowspan="1" class="conf
 luenceTd"> <tt>2000</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">
<b>Camel 2.0:</b> 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. </td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>fileName</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.0:</b> When using
the <tt>stream:file</tt> URI format, this option specifies the filename to stream
to/from. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">
<tt>url</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">
<tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">
<b>Camel 2.0:</b> When using the <tt>stream:url</tt> URI format, this
option specifies the URL to stream to/from. The input/output stream will be open
 ed using the <a shape="rect" class="external-link" href="http://docs.oracle.com/javase/6/docs/api/java/net/URLConnection.html"
rel="nofollow">JDK URLConnection</a> facility. </td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>scanStream</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.0:</b> To be used
for continuously reading a stream such as the unix <tt>tail</tt> command. <br
clear="none">
                                <b>Camel 2.4 to Camel 2.6:</b> will retry opening
the file if it is overwritten, somewhat like <tt>tail --retry</tt> </td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>retry</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.7:</b> will retry
opening the file if it's overwritten, somewhat like <tt>tail --retry</tt> </td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>scanStreamDelay</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>0</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.0:</b> Delay in milliseconds
between read attempts when using <tt>scanStream</tt>. </td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>groupLines</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>0</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.5:</b> To grou
 p X number of lines in the consumer. For example to group 10 lines and therefore only spit
out an <a shape="rect" href="exchange.html" title="Exchange">Exchange</a> with
10 lines, instead of 1 <a shape="rect" href="exchange.html" title="Exchange">Exchange</a>
per line. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">
<tt>autoCloseCount</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">
<tt>0</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">
<b>Camel 2.10.0:</b> (2.9.3 and 2.8.6) 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 <tt>autoCloseCount</tt>
batch. </td></tr></tbody></table>
 </div>
 </div>
 
 <h3><a shape="rect" name="BookInOnePage-Messagecontent"></a>Message content</h3>
 
-<p>The <b>stream:</b> component supports either <tt>String</tt>
or <tt>byte[]</tt> for writing to streams. Just add either <tt>String</tt>
or <tt>byte[]</tt> content to the <tt>message.in.body</tt>.<br
clear="none">
+<p>The <b>stream:</b> component supports either <tt>String</tt>
or <tt>byte[]</tt> for writing to streams. Just add either <tt>String</tt>
or <tt>byte[]</tt> content to the <tt>message.in.body</tt>. Messages
sent to the <b>stream:</b> producer in binary mode are not followed by the newline
character (as opposed to the <tt>String</tt> messages).<br clear="none">
 The special <tt>stream:header</tt> URI is used for custom output streams. Just
add a <tt>java.io.OutputStream</tt> object to <tt>message.in.header</tt>
in the key <tt>header</tt>.<br clear="none">
 See samples for an example.</p>
 

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/camel/content/stream.html
==============================================================================
--- websites/production/camel/content/stream.html (original)
+++ websites/production/camel/content/stream.html Tue May 29 10:21:08 2012
@@ -118,14 +118,14 @@ stream:url[?options]
 
 <h3><a shape="rect" name="Stream-Options"></a>Options</h3>
 <div class="confluenceTableSmall"><div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1"
class="confluenceTh"> Name </th><th colspan="1" rowspan="1" class="confluenceTh">
Default Value </th><th colspan="1" rowspan="1" class="confluenceTh"> Description
</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>delay</tt>
</td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>0</tt>
</td><td colspan="1" rowspan="1" class="confluenceTd"> Initial delay in milliseconds
before consuming or producing the stream. </td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"> <tt>encoding</tt> </td><td colspan="1"
rowspan="1" class="confluenceTd"> <em>JVM Default</em> </td><td colspan="1"
rowspan="1" class="confluenceTd">  As of 1.4, you can configure the encoding (is a <a
shape="rect" class="external-link" href="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/Charset.html"
rel="nofollow">charset name</a>) to use text-based streams (for example, message
body is a <tt>String</tt> 
 object). If not provided, Camel uses the <a shape="rect" class="external-link" href="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/Charset.html#defaultCharset()"
rel="nofollow">JVM default Charset</a>. </td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"> <tt>promptMessage</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.0:</b> Message prompt
to use when reading from <tt>stream:in</tt>; for example, you could set this to
<tt>Enter a command:</tt> </td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"> <tt>promptDelay</tt> </td><td colspan="1" rowspan="1"
class="confluenceTd"> <tt>0</tt> </td><td colspan="1" rowspan="1"
class="confluenceTd"> <b>Camel 2.0:</b> Optional delay in milliseconds before
showing the message prompt. </td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"> <tt>initialPromptDelay</tt> </td><td colspan="1"
rowspan="1" class="conf
 luenceTd"> <tt>2000</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">
<b>Camel 2.0:</b> 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. </td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>fileName</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.0:</b> When using
the <tt>stream:file</tt> URI format, this option specifies the filename to stream
to/from. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">
<tt>scanStream</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">
<tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">
<b>Camel 2.0:</b> To be used for continuously reading a stream such as the unix
<tt>tail</tt> command. <br clear="none">
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1"
class="confluenceTh"> Name </th><th colspan="1" rowspan="1" class="confluenceTh">
Default Value </th><th colspan="1" rowspan="1" class="confluenceTh"> Description
</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>delay</tt>
</td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>0</tt>
</td><td colspan="1" rowspan="1" class="confluenceTd"> Initial delay in milliseconds
before consuming or producing the stream. </td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"> <tt>encoding</tt> </td><td colspan="1"
rowspan="1" class="confluenceTd"> <em>JVM Default</em> </td><td colspan="1"
rowspan="1" class="confluenceTd">  As of 1.4, you can configure the encoding (is a <a
shape="rect" class="external-link" href="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/Charset.html"
rel="nofollow">charset name</a>) to use text-based streams (for example, message
body is a <tt>String</tt> 
 object). If not provided, Camel uses the <a shape="rect" class="external-link" href="http://java.sun.com/j2se/1.5.0/docs/api/java/nio/charset/Charset.html#defaultCharset()"
rel="nofollow">JVM default Charset</a>. </td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"> <tt>promptMessage</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.0:</b> Message prompt
to use when reading from <tt>stream:in</tt>; for example, you could set this to
<tt>Enter a command:</tt> </td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"> <tt>promptDelay</tt> </td><td colspan="1" rowspan="1"
class="confluenceTd"> <tt>0</tt> </td><td colspan="1" rowspan="1"
class="confluenceTd"> <b>Camel 2.0:</b> Optional delay in milliseconds before
showing the message prompt. </td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"> <tt>initialPromptDelay</tt> </td><td colspan="1"
rowspan="1" class="conf
 luenceTd"> <tt>2000</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">
<b>Camel 2.0:</b> 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. </td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>fileName</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.0:</b> When using
the <tt>stream:file</tt> URI format, this option specifies the filename to stream
to/from. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">
<tt>url</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">
<tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">
<b>Camel 2.0:</b> When using the <tt>stream:url</tt> URI format, this
option specifies the URL to stream to/from. The input/output stream will be open
 ed using the <a shape="rect" class="external-link" href="http://docs.oracle.com/javase/6/docs/api/java/net/URLConnection.html"
rel="nofollow">JDK URLConnection</a> facility. </td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>scanStream</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.0:</b> To be used
for continuously reading a stream such as the unix <tt>tail</tt> command. <br
clear="none">
                                <b>Camel 2.4 to Camel 2.6:</b> will retry opening
the file if it is overwritten, somewhat like <tt>tail --retry</tt> </td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>retry</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.7:</b> will retry
opening the file if it's overwritten, somewhat like <tt>tail --retry</tt> </td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>scanStreamDelay</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>0</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.0:</b> Delay in milliseconds
between read attempts when using <tt>scanStream</tt>. </td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>groupLines</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <tt>0</tt> </td><td
colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.5:</b> To grou
 p X number of lines in the consumer. For example to group 10 lines and therefore only spit
out an <a shape="rect" href="exchange.html" title="Exchange">Exchange</a> with
10 lines, instead of 1 <a shape="rect" href="exchange.html" title="Exchange">Exchange</a>
per line. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">
<tt>autoCloseCount</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">
<tt>0</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">
<b>Camel 2.10.0:</b> (2.9.3 and 2.8.6) 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 <tt>autoCloseCount</tt>
batch. </td></tr></tbody></table>
 </div>
 </div>
 
 <h3><a shape="rect" name="Stream-Messagecontent"></a>Message content</h3>
 
-<p>The <b>stream:</b> component supports either <tt>String</tt>
or <tt>byte[]</tt> for writing to streams. Just add either <tt>String</tt>
or <tt>byte[]</tt> content to the <tt>message.in.body</tt>.<br
clear="none">
+<p>The <b>stream:</b> component supports either <tt>String</tt>
or <tt>byte[]</tt> for writing to streams. Just add either <tt>String</tt>
or <tt>byte[]</tt> content to the <tt>message.in.body</tt>. Messages
sent to the <b>stream:</b> producer in binary mode are not followed by the newline
character (as opposed to the <tt>String</tt> messages).<br clear="none">
 The special <tt>stream:header</tt> URI is used for custom output streams. Just
add a <tt>java.io.OutputStream</tt> object to <tt>message.in.header</tt>
in the key <tt>header</tt>.<br clear="none">
 See samples for an example.</p>
 



Mime
View raw message