camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r914569 - in /websites/production/camel/content: cache/main.pageCache splitter.html
Date Tue, 01 Jul 2014 09:17:58 GMT
Author: buildbot
Date: Tue Jul  1 09:17:57 2014
New Revision: 914569

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/splitter.html

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

Modified: websites/production/camel/content/splitter.html
==============================================================================
--- websites/production/camel/content/splitter.html (original)
+++ websites/production/camel/content/splitter.html Tue Jul  1 09:17:57 2014
@@ -219,7 +219,7 @@ from("direct:streaming")
     .split().tokenizeXML("order", "orders").streaming()
        .to("activemq:queue:order");
 ]]></script>
-</div></div><p><span style="line-height: 1.4285715;">Available as
of Camel 2.13.1, you can set the above inheritNamsepaceTagName property to "*" to&#160;include
the preceding context in each token (i.e., generating each token enclosed in its ancestor
elements). It is noted that each token must share the same ancestor elements in this case.</span></p><p><span
style="line-height: 1.4285715;">&#160;</span><span style="line-height: 1.4285715;">The
above tokenizer works well on simple structures but has some inherent limitations in handling
more complex XML structures.</span></p><p><strong>Available as of
Camel 2.14</strong></p><p>The second tokenizer that uses a StAX parser to
overcome these limitations. This tokenizer recognizes XML namespaces and also supports complex
XML structures.</p><p>To split using this tokenizer at {<a shape="rect" rel="nofollow">urn:shop}order</a>,
we can write</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
+</div></div><p><span style="line-height: 1.4285715;">Available as
of Camel 2.13.1, you can set the above inheritNamsepaceTagName property to "*" to&#160;include
the preceding context in each token (i.e., generating each token enclosed in its ancestor
elements). It is noted that each token must share the same ancestor elements in this case.</span></p><p><span
style="line-height: 1.4285715;">The above tokenizer works well on simple structures but
has some inherent limitations in handling more complex XML structures.</span></p><p><strong>Available
as of Camel 2.14</strong></p><p>The second tokenizer that uses a StAX parser
to overcome these limitations. This tokenizer recognizes XML namespaces and also complex XML
structures.</p><p>To split using this tokenizer at {<a shape="rect" rel="nofollow">urn:shop}order</a>,
we can write</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 Namespaces ns = new Namespaces(&quot;ns1&quot;, &quot;urn:shop&quot;);
   ...
   from(&quot;file:inbox&quot;)
@@ -243,7 +243,7 @@ from(&quot;direct:streaming&quot;)
 <script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
   ...
     &lt;xtokenize mode=&quot;i&quot;&gt;//ns1:order&lt;/xtokenize&gt;
     ...]]></script>
-</div></div><p>Note that this StAX based tokenizer's uses StAX Location
API and requires a StAX Reader implementation (e.g., wookdstox) that correctly returns the
offset position pointing at the beginning of each event.</p><h4 id="Splitter-SplittingfilesbygroupingNlinestogether">Splitting
files by grouping N lines together</h4><p><strong>Available as of Camel
2.10</strong></p><p>The <a shape="rect" href="tokenizer.html">Tokenizer</a>
language has a new option <code>group</code> that allows you to group N parts
together, for example to split big files into chunks of 1000 lines.</p><div class="code
panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div><p>Note that this StAX based tokenizer's uses StAX Location
API and requires a StAX Reader implementation (e.g., woodstox) that correctly returns the
offset position pointing to the beginning of each event triggering segment (e.g., the offset
position of '&lt;' at each start and end element event).</p><h4 id="Splitter-SplittingfilesbygroupingNlinestogether">Splitting
files by grouping N lines together</h4><p><strong>Available as of Camel
2.10</strong></p><p>The <a shape="rect" href="tokenizer.html">Tokenizer</a>
language has a new option <code>group</code> that allows you to group N parts
together, for example to split big files into chunks of 1000 lines.</p><div class="code
panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 from(&quot;file:inbox&quot;)
     .split().tokenize(&quot;\n&quot;, 1000).streaming()
        .to(&quot;activemq:queue:order&quot;);



Mime
View raw message