You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2016/04/12 11:47:25 UTC
[jira] [Created] (CAMEL-9860) csv dataformat - Should have
quoteMode option in model
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)