Details
-
Type:
Improvement
-
Status: Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.15.0
-
Component/s: camel-core, camel-csv
-
Labels:None
-
Estimated Complexity:Unknown
Description
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
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 }