Author: buildbot Date: Mon Nov 24 13:22:35 2014 New Revision: 930306 Log: Production update by buildbot for camel
Modified: websites/production/camel/content/book-dataformat-appendix.html websites/production/camel/content/book-in-one-page.html websites/production/camel/content/cache/main.pageCache websites/production/camel/content/data-format-list.html websites/production/camel/content/data-format.html websites/production/camel/content/dozer-type-conversion.html websites/production/camel/content/univocity-parsers-formats.html Modified: websites/production/camel/content/book-dataformat-appendix.html ============================================================================== --- websites/production/camel/content/book-dataformat-appendix.html (original) +++ websites/production/camel/content/book-dataformat-appendix.html Mon Nov 24 13:22:35 2014 @@ -95,7 +95,7 @@ <p>The following data formats are currently supported:</p> -<ul><li>Standard JVM object marshalling<ul><li><a shape="rect" href="serialization.html">Serialization</a></li><li><a shape="rect" href="string.html">String</a></li></ul></li></ul><ul><li>Object marshalling<ul><li><a shape="rect" href="avro.html">Avro</a></li><li><a shape="rect" href="json.html">JSON</a></li><li><a shape="rect" href="protobuf.html">Protobuf</a></li></ul></li></ul><ul><li>Object/XML marshalling<ul><li><a shape="rect" href="castor.html">Castor</a></li><li><a shape="rect" href="jaxb.html">JAXB</a></li><li><a shape="rect" href="xmlbeans.html">XmlBeans</a></li><li><a shape="rect" href="xstream.html">XStream</a></li><li><a shape="rect" href="jibx.html">JiBX</a></li></ul></li></ul><ul><li>Object/XML/Webservice marshalling<ul><li><a shape="rect" href="soap.html">SOAP</a></li></ul></li></ul><ul><li>Direct JSON / XML marshalling<ul><li><a shape="rect" href="xmljson.html">XmlJson</a></li></ul></li></ul><ul><li>Flat data structure marshalling<ul><li><a shape="rect" href="beanio .html">BeanIO</a></li><li><a shape="rect" href="bindy.html">Bindy</a></li><li><a shape="rect" href="csv.html">CSV</a></li><li><a shape="rect" href="edi.html">EDI</a></li><li><a shape="rect" href="flatpack-dataformat.html">Flatpack DataFormat</a></li></ul></li></ul><ul><li>Domain specific marshalling<ul><li><a shape="rect" href="hl7-dataformat.html">HL7 DataFormat</a></li></ul></li></ul><ul><li>Compression<ul><li><a shape="rect" href="gzip-data-format.html">GZip data format</a></li><li><a shape="rect" href="zip-dataformat.html">Zip DataFormat</a></li><li><a shape="rect" href="zip-file-dataformat.html">Zip File DataFormat</a></li></ul></li></ul><ul><li>Security<ul><li><a shape="rect" href="crypto.html">Crypto</a></li><li><a shape="rect" href="crypto.html">PGP</a></li><li><a shape="rect" href="xmlsecurity-dataformat.html">XMLSecurity DataFormat</a></li></ul></li></ul><ul><li>Misc.<ul><li><a shape="rect" href="base64.html">Base64</a></li><li><a shape="rect" href="custom-dataformat.html" >Custom DataFormat</a> - to use your own custom implementation</li><li><a >shape="rect" href="rss.html">RSS</a></li><li><a shape="rect" >href="tidymarkup.html">TidyMarkup</a></li><li><a shape="rect" >href="syslog.html">Syslog</a></li><li><a shape="rect" >href="ical.html">ICal</a></li><li><a shape="rect" >href="barcode-data-format.html">Barcode </a>- to read and generate barcodes >(QR-Code, PDF417, ...)</li></ul></li></ul> +<ul><li>Standard JVM object marshalling<ul><li><a shape="rect" href="serialization.html">Serialization</a></li><li><a shape="rect" href="string.html">String</a></li></ul></li></ul><ul><li>Object marshalling<ul><li><a shape="rect" href="avro.html">Avro</a></li><li><a shape="rect" href="json.html">JSON</a></li><li><a shape="rect" href="protobuf.html">Protobuf</a></li></ul></li></ul><ul><li>Object/XML marshalling<ul><li><a shape="rect" href="castor.html">Castor</a></li><li><a shape="rect" href="jaxb.html">JAXB</a></li><li><a shape="rect" href="xmlbeans.html">XmlBeans</a></li><li><a shape="rect" href="xstream.html">XStream</a></li><li><a shape="rect" href="jibx.html">JiBX</a></li></ul></li></ul><ul><li>Object/XML/Webservice marshalling<ul><li><a shape="rect" href="soap.html">SOAP</a></li></ul></li></ul><ul><li>Direct JSON / XML marshalling<ul><li><a shape="rect" href="xmljson.html">XmlJson</a></li></ul></li></ul><ul><li>Flat data structure marshalling<ul><li><a shape="rect" href="beanio .html">BeanIO</a></li><li><a shape="rect" href="bindy.html">Bindy</a></li><li><a shape="rect" href="csv.html">CSV</a></li><li><a shape="rect" href="edi.html">EDI</a></li><li><a shape="rect" href="flatpack-dataformat.html">Flatpack DataFormat</a></li><li><a shape="rect" href="univocity-parsers-formats.html">uniVocity-parsers formats</a></li></ul></li></ul><ul><li>Domain specific marshalling<ul><li><a shape="rect" href="hl7-dataformat.html">HL7 DataFormat</a></li></ul></li></ul><ul><li>Compression<ul><li><a shape="rect" href="gzip-data-format.html">GZip data format</a></li><li><a shape="rect" href="zip-dataformat.html">Zip DataFormat</a></li><li><a shape="rect" href="zip-file-dataformat.html">Zip File DataFormat</a></li></ul></li></ul><ul><li>Security<ul><li><a shape="rect" href="crypto.html">Crypto</a></li><li><a shape="rect" href="crypto.html">PGP</a></li><li><a shape="rect" href="xmlsecurity-dataformat.html">XMLSecurity DataFormat</a></li></ul></li></ul><ul><li>Misc.<ul><li><a shap e="rect" href="base64.html">Base64</a></li><li><a shape="rect" href="custom-dataformat.html">Custom DataFormat</a> - to use your own custom implementation</li><li><a shape="rect" href="rss.html">RSS</a></li><li><a shape="rect" href="tidymarkup.html">TidyMarkup</a></li><li><a shape="rect" href="syslog.html">Syslog</a></li><li><a shape="rect" href="ical.html">ICal</a></li><li><a shape="rect" href="barcode-data-format.html">Barcode </a>- to read and generate barcodes (QR-Code, PDF417, ...)</li></ul></li></ul> <p>And related is the following:</p> <ul class="alternate"><li><a shape="rect" href="dataformat-component.html">DataFormat Component</a> for working with <a shape="rect" href="data-format.html">Data Format</a>s as if it was a regular <a shape="rect" href="component.html">Component</a> supporting <a shape="rect" href="endpoint.html">Endpoint</a>s and <a shape="rect" href="uris.html">URIs</a>.</li><li><a shape="rect" href="dozer-type-conversion.html">Dozer Type Conversion</a> using Dozer for type converting POJOs</li></ul> 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 Mon Nov 24 13:22:35 2014 @@ -4120,11 +4120,11 @@ While not actual tutorials you might fin </div> </div> <h2 id="BookInOnePage-Preface">Preface</h2><p>This tutorial aims to guide the reader through the stages of creating a project which uses Camel to facilitate the routing of messages from a JMS queue to a <a shape="rect" class="external-link" href="http://www.springramework.org" rel="nofollow">Spring</a> service. The route works in a synchronous fashion returning a response to the client.</p><p><style type="text/css">/*<![CDATA[*/ -div.rbtoc1416579471573 {padding: 0px;} -div.rbtoc1416579471573 ul {list-style: disc;margin-left: 0px;} -div.rbtoc1416579471573 li {margin-left: 0px;padding-left: 0px;} +div.rbtoc1416835149440 {padding: 0px;} +div.rbtoc1416835149440 ul {list-style: disc;margin-left: 0px;} +div.rbtoc1416835149440 li {margin-left: 0px;padding-left: 0px;} -/*]]>*/</style></p><div class="toc-macro rbtoc1416579471573"> +/*]]>*/</style></p><div class="toc-macro rbtoc1416835149440"> <ul class="toc-indentation"><li><a shape="rect" href="#Tutorial-JmsRemoting-TutorialonSpringRemotingwithJMS">Tutorial on Spring Remoting with JMS</a></li><li><a shape="rect" href="#Tutorial-JmsRemoting-Preface">Preface</a></li><li><a shape="rect" href="#Tutorial-JmsRemoting-Prerequisites">Prerequisites</a></li><li><a shape="rect" href="#Tutorial-JmsRemoting-Distribution">Distribution</a></li><li><a shape="rect" href="#Tutorial-JmsRemoting-About">About</a></li><li><a shape="rect" href="#Tutorial-JmsRemoting-CreatetheCamelProject">Create the Camel Project</a> <ul class="toc-indentation"><li><a shape="rect" href="#Tutorial-JmsRemoting-UpdatethePOMwithDependencies">Update the POM with Dependencies</a></li></ul> </li><li><a shape="rect" href="#Tutorial-JmsRemoting-WritingtheServer">Writing the Server</a> @@ -6310,11 +6310,11 @@ So we completed the last piece in the pi <style type="text/css">/*<![CDATA[*/ -div.rbtoc1416579473399 {padding: 0px;} -div.rbtoc1416579473399 ul {list-style: disc;margin-left: 0px;} -div.rbtoc1416579473399 li {margin-left: 0px;padding-left: 0px;} +div.rbtoc1416835153078 {padding: 0px;} +div.rbtoc1416835153078 ul {list-style: disc;margin-left: 0px;} +div.rbtoc1416835153078 li {margin-left: 0px;padding-left: 0px;} -/*]]>*/</style><div class="toc-macro rbtoc1416579473399"> +/*]]>*/</style><div class="toc-macro rbtoc1416835153078"> <ul class="toc-indentation"><li><a shape="rect" href="#Tutorial-AXIS-Camel-TutorialusingAxis1.4withApacheCamel">Tutorial using Axis 1.4 with Apache Camel</a> <ul class="toc-indentation"><li><a shape="rect" href="#Tutorial-AXIS-Camel-Prerequisites">Prerequisites</a></li><li><a shape="rect" href="#Tutorial-AXIS-Camel-Distribution">Distribution</a></li><li><a shape="rect" href="#Tutorial-AXIS-Camel-Introduction">Introduction</a></li><li><a shape="rect" href="#Tutorial-AXIS-Camel-SettinguptheprojecttorunAxis">Setting up the project to run Axis</a> <ul class="toc-indentation"><li><a shape="rect" href="#Tutorial-AXIS-Camel-Maven2">Maven 2</a></li><li><a shape="rect" href="#Tutorial-AXIS-Camel-wsdl">wsdl</a></li><li><a shape="rect" href="#Tutorial-AXIS-Camel-ConfiguringAxis">Configuring Axis</a></li><li><a shape="rect" href="#Tutorial-AXIS-Camel-RunningtheExample">Running the Example</a></li></ul> @@ -10283,7 +10283,7 @@ This is done using the following syntax: <p>The following data formats are currently supported:</p> -<ul><li>Standard JVM object marshalling<ul><li><a shape="rect" href="serialization.html">Serialization</a></li><li><a shape="rect" href="string.html">String</a></li></ul></li></ul><ul><li>Object marshalling<ul><li><a shape="rect" href="avro.html">Avro</a></li><li><a shape="rect" href="json.html">JSON</a></li><li><a shape="rect" href="protobuf.html">Protobuf</a></li></ul></li></ul><ul><li>Object/XML marshalling<ul><li><a shape="rect" href="castor.html">Castor</a></li><li><a shape="rect" href="jaxb.html">JAXB</a></li><li><a shape="rect" href="xmlbeans.html">XmlBeans</a></li><li><a shape="rect" href="xstream.html">XStream</a></li><li><a shape="rect" href="jibx.html">JiBX</a></li></ul></li></ul><ul><li>Object/XML/Webservice marshalling<ul><li><a shape="rect" href="soap.html">SOAP</a></li></ul></li></ul><ul><li>Direct JSON / XML marshalling<ul><li><a shape="rect" href="xmljson.html">XmlJson</a></li></ul></li></ul><ul><li>Flat data structure marshalling<ul><li><a shape="rect" href="beanio .html">BeanIO</a></li><li><a shape="rect" href="bindy.html">Bindy</a></li><li><a shape="rect" href="csv.html">CSV</a></li><li><a shape="rect" href="edi.html">EDI</a></li><li><a shape="rect" href="flatpack-dataformat.html">Flatpack DataFormat</a></li></ul></li></ul><ul><li>Domain specific marshalling<ul><li><a shape="rect" href="hl7-dataformat.html">HL7 DataFormat</a></li></ul></li></ul><ul><li>Compression<ul><li><a shape="rect" href="gzip-data-format.html">GZip data format</a></li><li><a shape="rect" href="zip-dataformat.html">Zip DataFormat</a></li><li><a shape="rect" href="zip-file-dataformat.html">Zip File DataFormat</a></li></ul></li></ul><ul><li>Security<ul><li><a shape="rect" href="crypto.html">Crypto</a></li><li><a shape="rect" href="crypto.html">PGP</a></li><li><a shape="rect" href="xmlsecurity-dataformat.html">XMLSecurity DataFormat</a></li></ul></li></ul><ul><li>Misc.<ul><li><a shape="rect" href="base64.html">Base64</a></li><li><a shape="rect" href="custom-dataformat.html" >Custom DataFormat</a> - to use your own custom implementation</li><li><a >shape="rect" href="rss.html">RSS</a></li><li><a shape="rect" >href="tidymarkup.html">TidyMarkup</a></li><li><a shape="rect" >href="syslog.html">Syslog</a></li><li><a shape="rect" >href="ical.html">ICal</a></li><li><a shape="rect" >href="barcode-data-format.html">Barcode </a>- to read and generate barcodes >(QR-Code, PDF417, ...)</li></ul></li></ul> +<ul><li>Standard JVM object marshalling<ul><li><a shape="rect" href="serialization.html">Serialization</a></li><li><a shape="rect" href="string.html">String</a></li></ul></li></ul><ul><li>Object marshalling<ul><li><a shape="rect" href="avro.html">Avro</a></li><li><a shape="rect" href="json.html">JSON</a></li><li><a shape="rect" href="protobuf.html">Protobuf</a></li></ul></li></ul><ul><li>Object/XML marshalling<ul><li><a shape="rect" href="castor.html">Castor</a></li><li><a shape="rect" href="jaxb.html">JAXB</a></li><li><a shape="rect" href="xmlbeans.html">XmlBeans</a></li><li><a shape="rect" href="xstream.html">XStream</a></li><li><a shape="rect" href="jibx.html">JiBX</a></li></ul></li></ul><ul><li>Object/XML/Webservice marshalling<ul><li><a shape="rect" href="soap.html">SOAP</a></li></ul></li></ul><ul><li>Direct JSON / XML marshalling<ul><li><a shape="rect" href="xmljson.html">XmlJson</a></li></ul></li></ul><ul><li>Flat data structure marshalling<ul><li><a shape="rect" href="beanio .html">BeanIO</a></li><li><a shape="rect" href="bindy.html">Bindy</a></li><li><a shape="rect" href="csv.html">CSV</a></li><li><a shape="rect" href="edi.html">EDI</a></li><li><a shape="rect" href="flatpack-dataformat.html">Flatpack DataFormat</a></li><li><a shape="rect" href="univocity-parsers-formats.html">uniVocity-parsers formats</a></li></ul></li></ul><ul><li>Domain specific marshalling<ul><li><a shape="rect" href="hl7-dataformat.html">HL7 DataFormat</a></li></ul></li></ul><ul><li>Compression<ul><li><a shape="rect" href="gzip-data-format.html">GZip data format</a></li><li><a shape="rect" href="zip-dataformat.html">Zip DataFormat</a></li><li><a shape="rect" href="zip-file-dataformat.html">Zip File DataFormat</a></li></ul></li></ul><ul><li>Security<ul><li><a shape="rect" href="crypto.html">Crypto</a></li><li><a shape="rect" href="crypto.html">PGP</a></li><li><a shape="rect" href="xmlsecurity-dataformat.html">XMLSecurity DataFormat</a></li></ul></li></ul><ul><li>Misc.<ul><li><a shap e="rect" href="base64.html">Base64</a></li><li><a shape="rect" href="custom-dataformat.html">Custom DataFormat</a> - to use your own custom implementation</li><li><a shape="rect" href="rss.html">RSS</a></li><li><a shape="rect" href="tidymarkup.html">TidyMarkup</a></li><li><a shape="rect" href="syslog.html">Syslog</a></li><li><a shape="rect" href="ical.html">ICal</a></li><li><a shape="rect" href="barcode-data-format.html">Barcode </a>- to read and generate barcodes (QR-Code, PDF417, ...)</li></ul></li></ul> <p>And related is the following:</p> <ul class="alternate"><li><a shape="rect" href="dataformat-component.html">DataFormat Component</a> for working with <a shape="rect" href="data-format.html">Data Format</a>s as if it was a regular <a shape="rect" href="component.html">Component</a> supporting <a shape="rect" href="endpoint.html">Endpoint</a>s and <a shape="rect" href="uris.html">URIs</a>.</li><li><a shape="rect" href="dozer-type-conversion.html">Dozer Type Conversion</a> using Dozer for type converting POJOs</li></ul> @@ -19686,11 +19686,11 @@ template.send("direct:alias-verify& </div> </div> <p>The <strong>cxf:</strong> component provides integration with <a shape="rect" href="http://cxf.apache.org">Apache CXF</a> for connecting to JAX-WS services hosted in CXF.</p><p><style type="text/css">/*<![CDATA[*/ -div.rbtoc1416579487445 {padding: 0px;} -div.rbtoc1416579487445 ul {list-style: disc;margin-left: 0px;} -div.rbtoc1416579487445 li {margin-left: 0px;padding-left: 0px;} +div.rbtoc1416835203892 {padding: 0px;} +div.rbtoc1416835203892 ul {list-style: disc;margin-left: 0px;} +div.rbtoc1416835203892 li {margin-left: 0px;padding-left: 0px;} -/*]]>*/</style></p><div class="toc-macro rbtoc1416579487445"> +/*]]>*/</style></p><div class="toc-macro rbtoc1416835203892"> <ul class="toc-indentation"><li><a shape="rect" href="#CXF-CXFComponent">CXF Component</a> <ul class="toc-indentation"><li><a shape="rect" href="#CXF-URIformat">URI format</a></li><li><a shape="rect" href="#CXF-Options">Options</a> <ul class="toc-indentation"><li><a shape="rect" href="#CXF-Thedescriptionsofthedataformats">The descriptions of the dataformats</a> Modified: websites/production/camel/content/cache/main.pageCache ============================================================================== Binary files - no diff available. Modified: websites/production/camel/content/data-format-list.html ============================================================================== --- websites/production/camel/content/data-format-list.html (original) +++ websites/production/camel/content/data-format-list.html Mon Nov 24 13:22:35 2014 @@ -75,7 +75,7 @@ <tbody> <tr> <td valign="top" width="100%"> -<div class="wiki-content maincontent"><ul><li>Standard JVM object marshalling<ul><li><a shape="rect" href="serialization.html">Serialization</a></li><li><a shape="rect" href="string.html">String</a></li></ul></li></ul><ul><li>Object marshalling<ul><li><a shape="rect" href="avro.html">Avro</a></li><li><a shape="rect" href="json.html">JSON</a></li><li><a shape="rect" href="protobuf.html">Protobuf</a></li></ul></li></ul><ul><li>Object/XML marshalling<ul><li><a shape="rect" href="castor.html">Castor</a></li><li><a shape="rect" href="jaxb.html">JAXB</a></li><li><a shape="rect" href="xmlbeans.html">XmlBeans</a></li><li><a shape="rect" href="xstream.html">XStream</a></li><li><a shape="rect" href="jibx.html">JiBX</a></li></ul></li></ul><ul><li>Object/XML/Webservice marshalling<ul><li><a shape="rect" href="soap.html">SOAP</a></li></ul></li></ul><ul><li>Direct JSON / XML marshalling<ul><li><a shape="rect" href="xmljson.html">XmlJson</a></li></ul></li></ul><ul><li>Flat data structure marshalli ng<ul><li><a shape="rect" href="beanio.html">BeanIO</a></li><li><a shape="rect" href="bindy.html">Bindy</a></li><li><a shape="rect" href="csv.html">CSV</a></li><li><a shape="rect" href="edi.html">EDI</a></li><li><a shape="rect" href="flatpack-dataformat.html">Flatpack DataFormat</a></li></ul></li></ul><ul><li>Domain specific marshalling<ul><li><a shape="rect" href="hl7-dataformat.html">HL7 DataFormat</a></li></ul></li></ul><ul><li>Compression<ul><li><a shape="rect" href="gzip-data-format.html">GZip data format</a></li><li><a shape="rect" href="zip-dataformat.html">Zip DataFormat</a></li><li><a shape="rect" href="zip-file-dataformat.html">Zip File DataFormat</a></li></ul></li></ul><ul><li>Security<ul><li><a shape="rect" href="crypto.html">Crypto</a></li><li><a shape="rect" href="crypto.html">PGP</a></li><li><a shape="rect" href="xmlsecurity-dataformat.html">XMLSecurity DataFormat</a></li></ul></li></ul><ul><li>Misc.<ul><li><a shape="rect" href="base64.html">Base64</a></li><li><a shap e="rect" href="custom-dataformat.html">Custom DataFormat</a> - to use your own custom implementation</li><li><a shape="rect" href="rss.html">RSS</a></li><li><a shape="rect" href="tidymarkup.html">TidyMarkup</a></li><li><a shape="rect" href="syslog.html">Syslog</a></li><li><a shape="rect" href="ical.html">ICal</a></li><li><a shape="rect" href="barcode-data-format.html">Barcode </a>- to read and generate barcodes (QR-Code, PDF417, ...)</li></ul></li></ul></div> +<div class="wiki-content maincontent"><ul><li>Standard JVM object marshalling<ul><li><a shape="rect" href="serialization.html">Serialization</a></li><li><a shape="rect" href="string.html">String</a></li></ul></li></ul><ul><li>Object marshalling<ul><li><a shape="rect" href="avro.html">Avro</a></li><li><a shape="rect" href="json.html">JSON</a></li><li><a shape="rect" href="protobuf.html">Protobuf</a></li></ul></li></ul><ul><li>Object/XML marshalling<ul><li><a shape="rect" href="castor.html">Castor</a></li><li><a shape="rect" href="jaxb.html">JAXB</a></li><li><a shape="rect" href="xmlbeans.html">XmlBeans</a></li><li><a shape="rect" href="xstream.html">XStream</a></li><li><a shape="rect" href="jibx.html">JiBX</a></li></ul></li></ul><ul><li>Object/XML/Webservice marshalling<ul><li><a shape="rect" href="soap.html">SOAP</a></li></ul></li></ul><ul><li>Direct JSON / XML marshalling<ul><li><a shape="rect" href="xmljson.html">XmlJson</a></li></ul></li></ul><ul><li>Flat data structure marshalli ng<ul><li><a shape="rect" href="beanio.html">BeanIO</a></li><li><a shape="rect" href="bindy.html">Bindy</a></li><li><a shape="rect" href="csv.html">CSV</a></li><li><a shape="rect" href="edi.html">EDI</a></li><li><a shape="rect" href="flatpack-dataformat.html">Flatpack DataFormat</a></li><li><a shape="rect" href="univocity-parsers-formats.html">uniVocity-parsers formats</a></li></ul></li></ul><ul><li>Domain specific marshalling<ul><li><a shape="rect" href="hl7-dataformat.html">HL7 DataFormat</a></li></ul></li></ul><ul><li>Compression<ul><li><a shape="rect" href="gzip-data-format.html">GZip data format</a></li><li><a shape="rect" href="zip-dataformat.html">Zip DataFormat</a></li><li><a shape="rect" href="zip-file-dataformat.html">Zip File DataFormat</a></li></ul></li></ul><ul><li>Security<ul><li><a shape="rect" href="crypto.html">Crypto</a></li><li><a shape="rect" href="crypto.html">PGP</a></li><li><a shape="rect" href="xmlsecurity-dataformat.html">XMLSecurity DataFormat</a></li></ul> </li></ul><ul><li>Misc.<ul><li><a shape="rect" href="base64.html">Base64</a></li><li><a shape="rect" href="custom-dataformat.html">Custom DataFormat</a> - to use your own custom implementation</li><li><a shape="rect" href="rss.html">RSS</a></li><li><a shape="rect" href="tidymarkup.html">TidyMarkup</a></li><li><a shape="rect" href="syslog.html">Syslog</a></li><li><a shape="rect" href="ical.html">ICal</a></li><li><a shape="rect" href="barcode-data-format.html">Barcode </a>- to read and generate barcodes (QR-Code, PDF417, ...)</li></ul></li></ul></div> </td> <td valign="top"> <div class="navigation"> Modified: websites/production/camel/content/data-format.html ============================================================================== --- websites/production/camel/content/data-format.html (original) +++ websites/production/camel/content/data-format.html Mon Nov 24 13:22:35 2014 @@ -92,7 +92,7 @@ <p>The following data formats are currently supported:</p> -<ul><li>Standard JVM object marshalling<ul><li><a shape="rect" href="serialization.html">Serialization</a></li><li><a shape="rect" href="string.html">String</a></li></ul></li></ul><ul><li>Object marshalling<ul><li><a shape="rect" href="avro.html">Avro</a></li><li><a shape="rect" href="json.html">JSON</a></li><li><a shape="rect" href="protobuf.html">Protobuf</a></li></ul></li></ul><ul><li>Object/XML marshalling<ul><li><a shape="rect" href="castor.html">Castor</a></li><li><a shape="rect" href="jaxb.html">JAXB</a></li><li><a shape="rect" href="xmlbeans.html">XmlBeans</a></li><li><a shape="rect" href="xstream.html">XStream</a></li><li><a shape="rect" href="jibx.html">JiBX</a></li></ul></li></ul><ul><li>Object/XML/Webservice marshalling<ul><li><a shape="rect" href="soap.html">SOAP</a></li></ul></li></ul><ul><li>Direct JSON / XML marshalling<ul><li><a shape="rect" href="xmljson.html">XmlJson</a></li></ul></li></ul><ul><li>Flat data structure marshalling<ul><li><a shape="rect" href="beanio .html">BeanIO</a></li><li><a shape="rect" href="bindy.html">Bindy</a></li><li><a shape="rect" href="csv.html">CSV</a></li><li><a shape="rect" href="edi.html">EDI</a></li><li><a shape="rect" href="flatpack-dataformat.html">Flatpack DataFormat</a></li></ul></li></ul><ul><li>Domain specific marshalling<ul><li><a shape="rect" href="hl7-dataformat.html">HL7 DataFormat</a></li></ul></li></ul><ul><li>Compression<ul><li><a shape="rect" href="gzip-data-format.html">GZip data format</a></li><li><a shape="rect" href="zip-dataformat.html">Zip DataFormat</a></li><li><a shape="rect" href="zip-file-dataformat.html">Zip File DataFormat</a></li></ul></li></ul><ul><li>Security<ul><li><a shape="rect" href="crypto.html">Crypto</a></li><li><a shape="rect" href="crypto.html">PGP</a></li><li><a shape="rect" href="xmlsecurity-dataformat.html">XMLSecurity DataFormat</a></li></ul></li></ul><ul><li>Misc.<ul><li><a shape="rect" href="base64.html">Base64</a></li><li><a shape="rect" href="custom-dataformat.html" >Custom DataFormat</a> - to use your own custom implementation</li><li><a >shape="rect" href="rss.html">RSS</a></li><li><a shape="rect" >href="tidymarkup.html">TidyMarkup</a></li><li><a shape="rect" >href="syslog.html">Syslog</a></li><li><a shape="rect" >href="ical.html">ICal</a></li><li><a shape="rect" >href="barcode-data-format.html">Barcode </a>- to read and generate barcodes >(QR-Code, PDF417, ...)</li></ul></li></ul> +<ul><li>Standard JVM object marshalling<ul><li><a shape="rect" href="serialization.html">Serialization</a></li><li><a shape="rect" href="string.html">String</a></li></ul></li></ul><ul><li>Object marshalling<ul><li><a shape="rect" href="avro.html">Avro</a></li><li><a shape="rect" href="json.html">JSON</a></li><li><a shape="rect" href="protobuf.html">Protobuf</a></li></ul></li></ul><ul><li>Object/XML marshalling<ul><li><a shape="rect" href="castor.html">Castor</a></li><li><a shape="rect" href="jaxb.html">JAXB</a></li><li><a shape="rect" href="xmlbeans.html">XmlBeans</a></li><li><a shape="rect" href="xstream.html">XStream</a></li><li><a shape="rect" href="jibx.html">JiBX</a></li></ul></li></ul><ul><li>Object/XML/Webservice marshalling<ul><li><a shape="rect" href="soap.html">SOAP</a></li></ul></li></ul><ul><li>Direct JSON / XML marshalling<ul><li><a shape="rect" href="xmljson.html">XmlJson</a></li></ul></li></ul><ul><li>Flat data structure marshalling<ul><li><a shape="rect" href="beanio .html">BeanIO</a></li><li><a shape="rect" href="bindy.html">Bindy</a></li><li><a shape="rect" href="csv.html">CSV</a></li><li><a shape="rect" href="edi.html">EDI</a></li><li><a shape="rect" href="flatpack-dataformat.html">Flatpack DataFormat</a></li><li><a shape="rect" href="univocity-parsers-formats.html">uniVocity-parsers formats</a></li></ul></li></ul><ul><li>Domain specific marshalling<ul><li><a shape="rect" href="hl7-dataformat.html">HL7 DataFormat</a></li></ul></li></ul><ul><li>Compression<ul><li><a shape="rect" href="gzip-data-format.html">GZip data format</a></li><li><a shape="rect" href="zip-dataformat.html">Zip DataFormat</a></li><li><a shape="rect" href="zip-file-dataformat.html">Zip File DataFormat</a></li></ul></li></ul><ul><li>Security<ul><li><a shape="rect" href="crypto.html">Crypto</a></li><li><a shape="rect" href="crypto.html">PGP</a></li><li><a shape="rect" href="xmlsecurity-dataformat.html">XMLSecurity DataFormat</a></li></ul></li></ul><ul><li>Misc.<ul><li><a shap e="rect" href="base64.html">Base64</a></li><li><a shape="rect" href="custom-dataformat.html">Custom DataFormat</a> - to use your own custom implementation</li><li><a shape="rect" href="rss.html">RSS</a></li><li><a shape="rect" href="tidymarkup.html">TidyMarkup</a></li><li><a shape="rect" href="syslog.html">Syslog</a></li><li><a shape="rect" href="ical.html">ICal</a></li><li><a shape="rect" href="barcode-data-format.html">Barcode </a>- to read and generate barcodes (QR-Code, PDF417, ...)</li></ul></li></ul> <p>And related is the following:</p> <ul class="alternate"><li><a shape="rect" href="dataformat-component.html">DataFormat Component</a> for working with <a shape="rect" href="data-format.html">Data Format</a>s as if it was a regular <a shape="rect" href="component.html">Component</a> supporting <a shape="rect" href="endpoint.html">Endpoint</a>s and <a shape="rect" href="uris.html">URIs</a>.</li><li><a shape="rect" href="dozer-type-conversion.html">Dozer Type Conversion</a> using Dozer for type converting POJOs</li></ul> Modified: websites/production/camel/content/dozer-type-conversion.html ============================================================================== --- websites/production/camel/content/dozer-type-conversion.html (original) +++ websites/production/camel/content/dozer-type-conversion.html Mon Nov 24 13:22:35 2014 @@ -85,16 +85,8 @@ <tbody> <tr> <td valign="top" width="100%"> -<div class="wiki-content maincontent"><h1 id="DozerTypeConversion-DozerTypeConversion.">Dozer Type Conversion.</h1> - -<p><a shape="rect" class="external-link" href="http://dozer.sourceforge.net/documentation/about.html" rel="nofollow">Dozer</a> is a fast and flexible framework for mapping back and forth between Java Beans. Coupled with Camel's automatic type conversion, it's a formidable tool for dealing object to object mapping headaches that crop up in enterprise integration projects. </p> - -<p>To explain how Dozer can be uses within Camel we'll use the following example of a simple Customer Support Service. The initial version of the Service defined a 'Customer' object used with a very flat structure. </p> - -<div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;"><b>Legacy Customer Service Class</b></div><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ - -public class Customer { +<div class="wiki-content maincontent"><h1 id="DozerTypeConversion-DozerTypeConversion.">Dozer Type Conversion.</h1><p><a shape="rect" class="external-link" href="http://dozer.sourceforge.net/documentation/about.html" rel="nofollow">Dozer</a> is a fast and flexible framework for mapping back and forth between Java Beans. Coupled with Camel's automatic type conversion, it's a formidable tool for dealing object to object mapping headaches that crop up in enterprise integration projects.</p><p>To explain how Dozer can be uses within Camel we'll use the following example of a simple Customer Support Service. The initial version of the Service defined a 'Customer' object used with a very flat structure.</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;"><b>Legacy Customer Service Class</b></div><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[public class Customer { private String firstName; private String lastName; private String street; @@ -119,14 +111,8 @@ public class Customer { ... getters and setters for each field ]]></script> -</div></div> - -<p>In the next version it was decided to structure the data better in the model by moving the address data into its own type, with the resultin domain object ending up looking like</p> - -<div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;"><b>Next Gen Customer object</b></div><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ - -public class Customer { +</div></div><p>In the next version it was decided to structure the data better in the model by moving the address data into its own type, with the resultin domain object ending up looking like</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;"><b>Next Gen Customer object</b></div><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[public class Customer { private String firstName; private String lastName; private Address address; @@ -152,21 +138,8 @@ public class Address { this.streetName = streetName; } ]]></script> -</div></div> - -<p>Much nicer! But as often occurs, the previous version of the service, with the old flat 'Customer' object, was in production with a client and the project must support the legacy interface. To support both versions, we must add a mechanism to convert between the old Customer service type and the new Customer domain type and back again. It would be a simple matter to write a custom converter class to map between them, but this may not be the only service/domain inconsistency and these tedious and error prone custom mappings could quickly start to add up, and bugs with them.</p> - -<p>To a large extent the two object share identical structure, with only the address representation being different. It would be very helpful if there were a practical way to to automate this kind of mapping, such that the similar properties could get mapped automatically and only the inconsistencies requiring custom mapping.</p> - -<p>This is where Dozer comes in; It uses reflection to map data between two bean types using a set of simple mapping rules. Where no rule is specified, dozer will attempt to map between them by using matching properties of two beans. In this way focus can be given to the inconsistencies between the beans i.e. the address properties, knowing that dozer will automatically match and convert the others.</p> - -<h2 id="DozerTypeConversion-ConfiguringDozer">Configuring Dozer</h2> - -<p>Dozer's configuration is extremely flexible and many mapping scenarios are covered <a shape="rect" class="external-link" href="http://dozer.sourceforge.net/documentation/mappings.html" rel="nofollow">here</a>. For our simple example, the configuration looks like the following.</p> - -<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[ -<mappings xmlns="http://dozer.sourceforge.net" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" +</div></div><p>Much nicer! But as often occurs, the previous version of the service, with the old flat 'Customer' object, was in production with a client and the project must support the legacy interface. To support both versions, we must add a mechanism to convert between the old Customer service type and the new Customer domain type and back again. It would be a simple matter to write a custom converter class to map between them, but this may not be the only service/domain inconsistency and these tedious and error prone custom mappings could quickly start to add up, and bugs with them.</p><p>To a large extent the two object share identical structure, with only the address representation being different. It would be very helpful if there were a practical way to to automate this kind of mapping, such that the similar properties could get mapped automatically and only the inconsistencies requiring custom mapping.</p><p>This is where Dozer comes in; It uses reflection to map data betw een two bean types using a set of simple mapping rules. Where no rule is specified, dozer will attempt to map between them by using matching properties of two beans. In this way focus can be given to the inconsistencies between the beans i.e. the address properties, knowing that dozer will automatically match and convert the others.</p><h2 id="DozerTypeConversion-ConfiguringDozer">Configuring Dozer</h2><p>Dozer's configuration is extremely flexible and many mapping scenarios are covered <a shape="rect" class="external-link" href="http://dozer.sourceforge.net/documentation/mappings.html" rel="nofollow">here</a>. For our simple example, the configuration looks like the following.</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[<mappings xmlns="http://dozer.sourceforge.net" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://dozer.sourceforge.net http://dozer.sourceforge.net/schema/beanmapping.xsd"> <mapping> <class-a>org.apache.camel.converter.dozer.service.Customer</class-a> @@ -182,38 +155,19 @@ public class Address { </mapping> </mappings> ]]></script> -</div></div> - -<h2 id="DozerTypeConversion-SupportforDozerinCamel">Support for Dozer in Camel</h2> - -<p>Camel provides a simple mechanism to integrate Dozer Mappers with it's own powerful <a shape="rect" class="external-link" href="http://camel.apache.org/type-converter.html">Type Conversion</a> framework. Its configured by creating an instance of <code>DozerTypeConverterLoader</code> providing it the camel context and an optional Dozer mapper. If no mapper is supplied, Camel's registry will be searched for suitable instances. The loader will query the Dozer Mapper for the the types it converts and a register them with Camel's type conversion framework to be handled by the mapper.</p> - - <div class="aui-message hint shadowed information-macro"> +</div></div><h2 id="DozerTypeConversion-SupportforDozerinCamel">Support for Dozer in Camel</h2><p>Camel provides a simple mechanism to integrate Dozer Mappers with it's own powerful <a shape="rect" class="external-link" href="http://camel.apache.org/type-converter.html">Type Conversion</a> framework. Its configured by creating an instance of <code>DozerTypeConverterLoader</code> providing it the camel context and an optional Dozer mapper. If no mapper is supplied, Camel's registry will be searched for suitable instances. The loader will query the Dozer Mapper for the the types it converts and a register them with Camel's type conversion framework to be handled by the mapper.</p> <div class="aui-message hint shadowed information-macro"> <p class="title">Limitation</p> <span class="aui-icon icon-hint">Icon</span> <div class="message-content"> - -<p>The Camel Dozer type converter does not support having the same type conversion paris in different mapping ids (eg map-id) in Dozer.</p> + <p>The Camel Dozer type converter does not support having the same type conversion paris in different mapping ids (eg map-id) in Dozer.</p> </div> </div> - - - -<p>In Java it can be configured as follows:</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[ -DozerBeanMapper mapper = new DozerBeanMapper(Arrays.asList(new String[]{"mapping.xml"})); +<p>In Java it can be configured as follows:</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[DozerBeanMapper mapper = new DozerBeanMapper(Arrays.asList(new String[]{"mapping.xml"})); new DozerTypeConverterLoader(camelContext, mapper); ]]></script> -</div></div> - -<p>Or in Spring</p> - -<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[ - -<!-- the registry will be scanned and 'mapper' below will be found and installed --> +</div></div><p>Or in Spring</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[<!-- the registry will be scanned and 'mapper' below will be found and installed --> <bean id="dozerConverterLoader" class="org.apache.camel.converter.dozer.DozerTypeConverterLoader" /> <bean id="mapper" class="org.dozer.DozerBeanMapper"> @@ -225,17 +179,11 @@ new DozerTypeConverterLoader(camelContex </bean> ]]></script> -</div></div> - -<h4 id="DozerTypeConversion-ConfiguringinOSGiblueprint">Configuring in OSGi blueprint</h4> -<p><strong>Available as of Camel 2.12</strong></p> - -<p>When using Dozer with OSGi Blueprint then its works better by configuring dozer using the <code>org.apache.camel.converter.dozer.DozerBeanMapperConfiguration</code> instead of <code>org.dozer.DozerBeanMapper</code>, as shown below:</p> - -<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[ -<!-- the registry will be scanned and 'mapper' below will be found and installed --> -<bean id="dozerConverterLoader" class="org.apache.camel.converter.dozer.DozerTypeConverterLoader" /> +</div></div><h4 id="DozerTypeConversion-ConfiguringinOSGiblueprint">Configuring in OSGi blueprint</h4><p><strong>Available as of Camel 2.12</strong></p><p>When using Dozer with OSGi Blueprint then its works better by configuring Dozer using the <code>org.apache.camel.converter.dozer.DozerBeanMapperConfiguration</code> instead of <code>org.dozer.DozerBeanMapper</code>, as shown below:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[<bean id="dozerConverterLoader" class="org.apache.camel.converter.dozer.DozerTypeConverterLoader"> + <argument index="0" ref="myCamel"/> + <argument index="1" ref="mapper"/> +</bean> <bean id="mapper" class="org.apache.camel.converter.dozer.DozerBeanMapperConfiguration"> <property name="mappingFiles"> @@ -244,14 +192,12 @@ new DozerTypeConverterLoader(camelContex </list> </property> </bean> -]]></script> -</div></div> - -<p>Now, where necessary, Camel will use Dozer to do conversions; In our case between the new domain and legacy Customer types e.g. </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[ -// given the following route +Â +<camelContext id="myCamel" xmlns="http://camel.apache.org/schema/blueprint"> + ... +</camelContext>]]></script> +</div></div><p>Now, where necessary, Camel will use Dozer to do conversions; In our case between the new domain and legacy Customer types e.g.</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[// given the following route from("direct:legacy-service-in").bean(new CustomerProcessor()); // and a processor Modified: websites/production/camel/content/univocity-parsers-formats.html ============================================================================== --- websites/production/camel/content/univocity-parsers-formats.html (original) +++ websites/production/camel/content/univocity-parsers-formats.html Mon Nov 24 13:22:35 2014 @@ -41,6 +41,7 @@ <script src='//camel.apache.org/styles/highlighter/scripts/shCore.js' type='text/javascript'></script> <script src='//camel.apache.org/styles/highlighter/scripts/shBrushJava.js' type='text/javascript'></script> <script src='//camel.apache.org/styles/highlighter/scripts/shBrushXml.js' type='text/javascript'></script> + <script src='//camel.apache.org/styles/highlighter/scripts/shBrushJScript.js' type='text/javascript'></script> <script src='//camel.apache.org/styles/highlighter/scripts/shBrushPlain.js' type='text/javascript'></script> <script type="text/javascript"> @@ -92,7 +93,17 @@ <artifactId>camel-univocity-parsers</artifactId> <version>x.x.x</version> </dependency>]]></script> -</div></div><h3 id="uniVocity-parsersformats-Options">Options</h3><p>Most configuration options of the uniVocity-parsers are available in the data formats. If you want more information about a particular option, please refer to their <a shape="rect" class="external-link" href="http://www.univocity.com/pages/parsers-documentation" rel="nofollow">documentation page</a>.</p><p>The 3 data formats share common options and have dedicated ones, this section presents them all.</p><h4 id="uniVocity-parsersformats-Commonoptions,sharedbyallthedataformats">Common options, shared by all the data formats</h4><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Parameter name</th><th colspan="1" rowspan="1" class="confluenceTh">Type</th><th colspan="1" rowspan="1" class="confluenceTh">Description</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>nullValue</code></td><td colspan="1" rowspan="1" class="confluenceTd"><cod e>String</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The string representation of a <code>null</code> value.</p><p>This option is <code>null</code> by default. When <code>null</code>, it uses the default uniVocity-parser value which is <code>null</code>.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>skipEmptyLines</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>Boolean</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Whether or not the empty lines must be ignored.</p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parser value which is <code>true</code>.</span></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>ignoreTrailingWhitespaces</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>Boolean</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Whether or not the trailing white spac es must ignored.</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parser value which is <code>true</code>.</span></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>ignoreLeadingWhitespaces</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>Boolean</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Whether or not the leading white spaces must be ignored.</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parser value which is <code>true</code>.</span></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>headersDisabled</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>boolean</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Whether or not the headers are disabled. When defined, this option explicitly sets the headers as <code>null</code> which indicates that there is no header.</p><p>This option is <code>false</code> by default.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>headers</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>String[]</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The headers to use.</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parser value which is <code>null</code>.</span></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>headersExtractionEnabled</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>Boolean</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Whether or not the header must be read in the first line of the test document</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parser val ue which is <code>false</code>.</span></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>numberOfRecordsToRead</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>Integer</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The maximum number of record to read.</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parser value which is <code>-1</code>.</span></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>emptyValue</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>String</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The String representation of an empty value</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parser value which is <code>""</code>.</span></p></td></tr><tr><td colspan="1" rowspan="1" class="confluen ceTd"><code>lineSeparator</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>String</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The line separator of the files</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parser value which is the platform line separator.</span></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>normalizedLineSeparator</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>Character</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The normalized line separator of the files</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parser value which is <code>"\n"</code>.</span></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>comment</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code >Character</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The >comment symbol.</p><p><span>This option is </span><code>null</code><span> by >default. When </span><code>null</code><span>, it uses the default >uniVocity-parser value which is <code>'#'</code>.</span></p></td></tr><tr><td >colspan="1" rowspan="1" class="confluenceTd"><code>lazyLoad</code></td><td >colspan="1" rowspan="1" class="confluenceTd"><code>boolean</code></td><td >colspan="1" rowspan="1" class="confluenceTd"><p>Whether the unmarshalling >should produce an iterator that reads the lines on the fly or if all the >lines must be read at one.</p><p>This option is <code>false</code> by >default.</p></td></tr><tr><td colspan="1" rowspan="1" >class="confluenceTd"><code>asMap</code></td><td colspan="1" rowspan="1" >class="confluenceTd"><code>boolean</code></td><td colspan="1" rowspan="1" >class="confluenceTd"><p>Whether the unmarshalling should produce maps for the >lines values instead of lists. It requires to have hea der (either defined or collected).</p><p>This options is <code>false</code> by default.</p></td></tr></tbody></table></div><h4 id="uniVocity-parsersformats-CSVformatoptions">CSV format options</h4><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Parameter name</th><th colspan="1" rowspan="1" class="confluenceTh">Type</th><th colspan="1" rowspan="1" class="confluenceTh">Description</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>quoteAllFields</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>Boolean</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Whether or not all values must be quoted when writing them.</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parser value which is <code>false</code>.</span></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>quote</co de></td><td colspan="1" rowspan="1" class="confluenceTd"><code>Character</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The quote symbol.</p><p>This option is <code>null</code> by default. When <code>null</code>, it uses the default uniVocity-parser value which is <span style="font-family: monospace;">'"'</span>.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>quoteEscape</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>Character</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The quote escape symbol.</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parser value which is <code>'"'</code>.</span></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>delimiter</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>Character</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The delimiter of values</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code>, it uses the default uniVocity-parser value which is <code>','</code>.</p></td></tr></tbody></table></div><h4 id="uniVocity-parsersformats-Fixed-widthformatoptions">Fixed-width format options</h4><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Parameter name</th><th colspan="1" rowspan="1" class="confluenceTh">Type</th><th colspan="1" rowspan="1" class="confluenceTh">Description</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>fieldLengths</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>int[]</code></td><td colspan="1" rowspan="1" class="confluenceTd">This options is required and defines the length of each values.</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>skipTrailingCharsUntilNewline</code></td><td colspan="1" rowspan="1" class="confluenceTd"><c ode>Boolean</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Whether or not the trailing characters until new line must be ignored.</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parser value which is <code>false</code>.</span></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>recordEndsOnNewLine</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>Boolean</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Whether or not the record ends on new line.</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parser value which is <code>false</code>.</span></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>padding</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>Character</code></td><td colspan="1" rowspan="1" class="conf luenceTd"><p>The padding character.</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parser value which is <code>' '</code> (space).</span></p></td></tr></tbody></table></div><h4 id="uniVocity-parsersformats-TSVformatoptions">TSV format options</h4><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Parameter name</th><th colspan="1" rowspan="1" class="confluenceTh">Type</th><th colspan="1" rowspan="1" class="confluenceTh">Description</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>escapeChar</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>Character</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The escape character.</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parser value which is <code>'\ '</code>.</span></p></td></tr></tbody></table></div><h3 id="uniVocity-parsersformats-Marshallingusages">Marshalling usages</h3><p>The marshalling accepts either:</p><ul><li>A list of maps (L<code>ist<Map<String, ?>></code>), one for each line</li><li>A single map (<code><span>Map<String, ?></span></code>), for a single line</li></ul><p><span style="line-height: 1.4285715;">Any other body will throws an exception.</span></p><h4 id="uniVocity-parsersformats-Usageexample:marshallingaMapintoCSVformat">Usage example: marshalling a Map into CSV format</h4><div class="table-wrap"><table class="confluenceTable"><tbody><tr><td colspan="1" rowspan="1" class="confluenceTd">Considering the following body</td><td colspan="1" rowspan="1" class="confluenceTd"><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +</div></div><h3 id="uniVocity-parsersformats-Options">Options</h3><p>Most configuration options of the uniVocity-parsers are available in the data formats. If you want more information about a particular option, please refer to their <a shape="rect" class="external-link" href="http://www.univocity.com/pages/parsers-documentation" rel="nofollow">documentation page</a>.</p><p>The 3 data formats share common options and have dedicated ones, this section presents them all.</p><h4 id="uniVocity-parsersformats-Commonoptions,sharedbyallthedataformats">Common options, shared by all the data formats</h4><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Parameter name</th><th colspan="1" rowspan="1" class="confluenceTh">Type</th><th colspan="1" rowspan="1" class="confluenceTh">Description</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>nullValue</code></td><td colspan="1" rowspan="1" class="confluenceTd"><cod e>String</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The string representation of a <code>null</code> value.</p><p>This option is <code>null</code> by default. When <code>null</code>, it uses the default uniVocity-parser value which is <code>null</code>.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>skipEmptyLines</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>Boolean</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Whether or not the empty lines must be ignored.</p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parser value which is <code>true</code>.</span></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>ignoreTrailingWhitespaces</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>Boolean</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Whether or not the trailing white spac es must ignored.</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parser value which is <code>true</code>.</span></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>ignoreLeadingWhitespaces</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>Boolean</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Whether or not the leading white spaces must be ignored.</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parser value which is <code>true</code>.</span></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>headersDisabled</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>boolean</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Whether or not the headers are disabled. When defined, this option explicitly sets the headers as <code>null</code> which indicates that there is no header.</p><p>This option is <code>false</code> by default.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>headers</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>String[]</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The headers to use.</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parser value which is <code>null</code>.</span></p><p>In the XML DSL, this option is configured using children <code><univocity-header></code> tags:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[<univocity-csv> + <univocity-header>first</univocity-header> + <univocity-header>second</univocity-header> +</univocity-csv>]]></script> +</div></div><p>See other marshalling and unmarshalling examples for more information.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>headersExtractionEnabled</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>Boolean</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Whether or not the header must be read in the first line of the test document</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parser value which is <code>false</code>.</span></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>numberOfRecordsToRead</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>Integer</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The maximum number of record to read.</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parser value which is <code>-1</code>.</span></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>emptyValue</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>String</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The String representation of an empty value</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parser value which is <code>""</code>.</span></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>lineSeparator</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>String</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The line separator of the files</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parser value which is the platform line separator.</span></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceT d"><code>normalizedLineSeparator</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>Character</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The normalized line separator of the files</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parser value which is <code>"\n"</code>.</span></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>comment</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>Character</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The comment symbol.</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parser value which is <code>'#'</code>.</span></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>lazyLoad</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>boolean</code></td><td cols pan="1" rowspan="1" class="confluenceTd"><p>Whether the unmarshalling should produce an iterator that reads the lines on the fly or if all the lines must be read at one.</p><p>This option is <code>false</code> by default.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>asMap</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>boolean</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Whether the unmarshalling should produce maps for the lines values instead of lists. It requires to have header (either defined or collected).</p><p>This options is <code>false</code> by default.</p></td></tr></tbody></table></div><h4 id="uniVocity-parsersformats-CSVformatoptions">CSV format options</h4><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Parameter name</th><th colspan="1" rowspan="1" class="confluenceTh">Type</th><th colspan="1" rowspan="1" class="confluenceTh">Description</t h></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>quoteAllFields</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>Boolean</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Whether or not all values must be quoted when writing them.</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parser value which is <code>false</code>.</span></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>quote</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>Character</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The quote symbol.</p><p>This option is <code>null</code> by default. When <code>null</code>, it uses the default uniVocity-parser value which is <span style="font-family: monospace;">'"'</span>.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>quoteEscape</code></td><td colspan="1" rowspan="1 " class="confluenceTd"><code>Character</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The quote escape symbol.</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parser value which is <code>'"'</code>.</span></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>delimiter</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>Character</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The delimiter of values</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code>, it uses the default uniVocity-parser value which is <code>','</code>.</p></td></tr></tbody></table></div><h4 id="uniVocity-parsersformats-Fixed-widthformatoptions">Fixed-width format options</h4><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Parameter name</th><th colspan ="1" rowspan="1" class="confluenceTh">Type</th><th colspan="1" rowspan="1" class="confluenceTh">Description</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>fieldLengths</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>int[]</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>This options is required and defines the length of each values</p><p>In the XML DSL, this option is configured using children <code><univocity-header></code> tags:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[<univocity-fixed> + <univocity-header length="3"/> + <univocity-header length="8"/> +</univocity-fixed>]]></script> +</div></div><p>See other marshalling and unmarshalling examples for more information.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>skipTrailingCharsUntilNewline</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>Boolean</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Whether or not the trailing characters until new line must be ignored.</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parser value which is <code>false</code>.</span></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>recordEndsOnNewLine</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>Boolean</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Whether or not the record ends on new line.</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parse r value which is <code>false</code>.</span></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>padding</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>Character</code></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The padding character.</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parser value which is <code>' '</code> (space).</span></p></td></tr></tbody></table></div><h4 id="uniVocity-parsersformats-TSVformatoptions">TSV format options</h4><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Parameter name</th><th colspan="1" rowspan="1" class="confluenceTh">Type</th><th colspan="1" rowspan="1" class="confluenceTh">Description</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>escapeChar</code></td><td colspan="1" rowspan="1" class="confluenceTd"><code>Character</c ode></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The escape character.</p><p><span>This option is </span><code>null</code><span> by default. When </span><code>null</code><span>, it uses the default uniVocity-parser value which is <code>'\'</code>.</span></p></td></tr></tbody></table></div><h3 id="uniVocity-parsersformats-Marshallingusages">Marshalling usages</h3><p>The marshalling accepts either:</p><ul><li>A list of maps (L<code>ist<Map<String, ?>></code>), one for each line</li><li>A single map (<code><span>Map<String, ?></span></code>), for a single line</li></ul><p><span style="line-height: 1.4285715;">Any other body will throws an exception.</span></p><h4 id="uniVocity-parsersformats-Usageexample:marshallingaMapintoCSVformat">Usage example: marshalling a Map into CSV format</h4><div class="table-wrap"><table class="confluenceTable"><tbody><tr><td colspan="1" rowspan="1" class="confluenceTd">Considering the following body</td><td colspan="1" rowspan ="1" class="confluenceTd"><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[Map<String, Object> body = new HashMap<>(); body.put("A", "one"); body.put("B", "two"); @@ -156,7 +167,57 @@ body.put("C", "three" </route>]]></script> </div></div></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><span>then it will produce</span></td><td colspan="1" rowspan="1" class="confluenceTd"><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> <script class="theme: Default; brush: text; gutter: false" type="syntaxhighlighter"><![CDATA[one two three]]></script> -</div></div><p>(with tabs separating the values)</p></td></tr></tbody></table></div><h3 id="uniVocity-parsersformats-Unmarshallingusages">Unmarshalling usages</h3><p> </p><p> </p><p> </p></div> +</div></div><p>(with tabs separating the values)</p></td></tr></tbody></table></div><h3 id="uniVocity-parsersformats-Unmarshallingusages">Unmarshalling usages</h3><p>The unmarshalling uses an <code>InputStream</code> in order to read the data.</p><p>Each row produces either:</p><ul><li>a list with all the values in it (<code>asMap</code> option with <code>false</code>);</li><li>A map with all the values indexed by the headers (<code>asMap</code> option with <code>true</code>).</li></ul><p>All the rows can either:</p><ul><li>be collected at once into a list (<code>lazyLoad</code> option with <code>false</code>);</li><li>be read on the fly using an iterator (<code>lazyLoad</code> option with <code>true</code>).</li></ul><h4 id="uniVocity-parsersformats-Usageexample:unmarshallingaCSVformatintomapswithautomaticheaders">Usage example: unmarshalling a CSV format into maps with automatic headers</h4><div class="tabl e-wrap"><table class="confluenceTable"><tbody><tr><td colspan="1" rowspan="1" class="confluenceTd">Considering the following body</td><td colspan="1" rowspan="1" class="confluenceTd"><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: text; gutter: false" type="syntaxhighlighter"><![CDATA[A,B,C +one,two,three +four,five,six]]></script> +</div></div></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">and this Java route definition</td><td colspan="1" rowspan="1" class="confluenceTd"><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("direct:input") + .unmarshal(new UniVocityCsvDataFormat() + .setAsMap(true) + .setHeaderExtractionEnabled(true) + ) + .to("mock:result");]]></script> +</div></div></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">or this XML route definition</td><td colspan="1" rowspan="1" class="confluenceTd"><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[<route> + <from uri="direct:input"/> + <unmarshal> + <univocity-csv headerExtractionEnabled="true" asMap="true"/> + </unmarshal> + <to uri="mock:result"/> +</route>]]></script> +</div></div></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">then it will produce</td><td colspan="1" rowspan="1" class="confluenceTd"><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: js; gutter: false" type="syntaxhighlighter"><![CDATA[[ + {A: 'one', B: 'two', C: 'three'}, + {A: 'four', B: 'five', C: 'six'} +]]]></script> +</div></div></td></tr></tbody></table></div><h4 id="uniVocity-parsersformats-Usageexample:unmarshallingafixed-widthformatintolists">Usage example: unmarshalling a fixed-width format into lists</h4><div class="table-wrap"><table class="confluenceTable"><tbody><tr><td colspan="1" rowspan="1" class="confluenceTd">Considering the following body</td><td colspan="1" rowspan="1" class="confluenceTd"><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: text; gutter: false" type="syntaxhighlighter"><![CDATA[one two three +four five six]]></script> +</div></div></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">and this Java route definition</td><td colspan="1" rowspan="1" class="confluenceTd"><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("direct:input") + .unmarshal(new UniVocityFixedWidthDataFormat() + .setFieldLengths(new int[] {5,5,5}) + ) + .to("mock:result");]]></script> +</div></div></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">or this XML route definition</td><td colspan="1" rowspan="1" class="confluenceTd"><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[<route> + <from uri="direct:input"/> + <unmarshal> + <univocity-fixed> + <univocity-header length="5"/> + <univocity-header length="5"/> + <univocity-header length="5"/> + </univocity-fixed> + </unmarshal> + <to uri="mock:result"/> +</route>]]></script> +</div></div></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">then it will produce</td><td colspan="1" rowspan="1" class="confluenceTd"><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: js; gutter: false" type="syntaxhighlighter"><![CDATA[[ + ['one', 'two', 'three'], + ['four', 'five', 'six'] +]]]></script> +</div></div></td></tr></tbody></table></div></div> </td> <td valign="top"> <div class="navigation">