camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r929868 - in /websites/production/camel/content: cache/main.pageCache univocity-parsers-formats.html
Date Thu, 20 Nov 2014 14:18:12 GMT
Author: buildbot
Date: Thu Nov 20 14:18:12 2014
New Revision: 929868

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/univocity-parsers-formats.html

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

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 Thu Nov 20 14:18:12 2014
@@ -86,7 +86,7 @@
 	<tbody>
         <tr>
         <td valign="top" width="100%">
-<div class="wiki-content maincontent"><h2 id="uniVocity-parsersformats-uniVocity-parsers">uniVocity-parsers</h2><p>This&#160;<a
shape="rect" href="data-format.html">Data Format</a>, available since camel 2.15.0,
uses&#160;<a shape="rect" class="external-link" href="http://www.univocity.com/pages/about-parsers"
rel="nofollow">uniVocity-parsers</a> for reading and writing 3 kinds of tabular data
text files:</p><ul><li>CSV (Comma Separated Values), where the values are
separated by a symbol (usually a comma)</li><li>fixed-width, where the values
have known sizes</li><li>TSV (Tabular Separated Values), where the fields are
separated by a tabulation</li></ul><p>Thus there are 3 data formats based
on uniVocity-parsers.</p><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"><code>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.</p></td></tr><tr><td
colspan="1" row
 span="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><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.</span></p></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
spaces 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.</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.</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 </sp
 an><code>null</code><span> by default. When </span><code>null</code><span>,
it uses the default uniVocity-parser value.</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 value.</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 uniV
 ocity-parser value.</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.</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.</span></p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><code>normalizedLineSeparator</code></td><td
colspan="1" rowspan="1" cl
 ass="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.</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.</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 fl
 y 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</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.</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><span>This
option is </span><code>null</code><span> by default. When </span><code>null</code><span>,
it uses the default uniVocity-parser value.</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</c
 ode><span> by default. When </span><code>null</code><span>,
it uses the default uniVocity-parser value.</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><span>,
it uses the default uniVocity-parser value.</span></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"><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.</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.</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.</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.</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&lt;Map&lt;String,
?&gt;&gt;</code>), one for each line</li><li>A single map (<code><span>Map&lt;String,
?&gt;</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 cla
 ss="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
+<div class="wiki-content maincontent"><h2 id="uniVocity-parsersformats-uniVocity-parsers">uniVocity-parsers</h2><p>This&#160;<a
shape="rect" href="data-format.html">Data Format</a>, available since camel 2.15.0,
uses&#160;<a shape="rect" class="external-link" href="http://www.univocity.com/pages/about-parsers"
rel="nofollow">uniVocity-parsers</a> for reading and writing 3 kinds of tabular data
text files:</p><ul><li>CSV (Comma Separated Values), where the values are
separated by a symbol (usually a comma)</li><li>fixed-width, where the values
have known sizes</li><li>TSV (Tabular Separated Values), where the fields are
separated by a tabulation</li></ul><p>Thus there are 3 data formats based
on uniVocity-parsers.</p><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"><code>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
spaces 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>ignoreLea
 dingWhitespaces</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><t
 d 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 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 n
 umber 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>n
 ull</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 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" rows
 pan="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</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 <s
 pan 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-w
 idth 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"><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-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="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-pa
 rsersformats-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&lt;Map&lt;String,
?&gt;&gt;</code>), one for each line</li><li>A single map (<code>
 <span>Map&lt;String, ?&gt;</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&lt;String,
Object&gt; body = new HashMap&lt;&gt;();
 body.put(&quot;A&quot;, &quot;one&quot;);
 body.put(&quot;B&quot;, &quot;two&quot;);



Mime
View raw message