camel-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/CAMEL-9860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15236933#comment-15236933
] 

Andrea Cosentino commented on CAMEL-9860:
-----------------------------------------

Thanks :-)

> 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
>            Assignee: Andrea Cosentino
>            Priority: Minor
>             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 automatic 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