Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9860

csv dataformat - Should have quoteMode option in model

    XMLWordPrintableJSON

    Details

    • 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
      }
      

        Attachments

          Activity

            People

            • Assignee:
              acosentino Andrea Cosentino
              Reporter:
              davsclaus Claus Ibsen
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: