camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-9860) csv dataformat - Should have quoteMode option in model
Date Tue, 12 Apr 2016 09:47:25 GMT
Claus Ibsen created CAMEL-9860:
----------------------------------

             Summary: csv dataformat - Should have quoteMode option in model
                 Key: CAMEL-9860
                 URL: https://issues.apache.org/jira/browse/CAMEL-9860
             Project: Camel
          Issue Type: Improvement
          Components: camel-core, camel-csv
    Affects Versions: 2.15.0
            Reporter: Claus Ibsen
             Fix For: 2.16.4, 2.17.1, 2.18.0


We need to add option for this in the model

private QuoteMode quoteMode;

In the model it should be

private String quoteMode

And then we convert the string to the enum
{code}
public enum QuoteMode {

    /**
     * Quotes all fields.
     */
    ALL,

    /**
     * Quotes fields which contain special characters such as a delimiter, quote character
or any of the characters in
     * line separator.
     */
    MINIMAL,

    /**
     * Quotes all non-numeric fields.
     */
    NON_NUMERIC,

    /**
     * Never quotes fields. When the delimiter occurs in data, it is preceded by the current
escape character. If the
     * escape character is not set, printing will throw an exception if any characters that
require escaping are
     * encountered.
     */
    NONE
}
{code}





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message