Class CSVStrategy

    • Field Detail

      • COMMENTS_DISABLED

        public static char COMMENTS_DISABLED
      • ESCAPE_DISABLED

        public static char ESCAPE_DISABLED
      • ENCAPSULATOR_DISABLED

        public static char ENCAPSULATOR_DISABLED
      • DEFAULT_PRINTER_NEWLINE

        public static String DEFAULT_PRINTER_NEWLINE
      • DEFAULT_STRATEGY

        public static final CSVStrategy DEFAULT_STRATEGY
      • EXCEL_STRATEGY

        public static final CSVStrategy EXCEL_STRATEGY
      • TDF_STRATEGY

        public static final CSVStrategy TDF_STRATEGY
    • Constructor Detail

      • CSVStrategy

        public CSVStrategy​(char delimiter,
                           char encapsulator,
                           char commentStart)
      • CSVStrategy

        public CSVStrategy​(char delimiter,
                           char encapsulator,
                           char commentStart,
                           char escape,
                           boolean ignoreLeadingWhitespaces,
                           boolean ignoreTrailingWhitespaces,
                           boolean interpretUnicodeEscapes,
                           boolean ignoreEmptyLines,
                           String printerNewline)
        Customized CSV strategy setter.
        Parameters:
        delimiter - a Char used for value separation
        encapsulator - a Char used as value encapsulation marker
        commentStart - a Char used for comment identification
        escape - a Char used for escaping
        ignoreTrailingWhitespaces - TRUE when trailing whitespaces should be ignored
        ignoreLeadingWhitespaces - TRUE when leading whitespaces should be ignored
        interpretUnicodeEscapes - TRUE when unicode escapes should be interpreted
        ignoreEmptyLines - TRUE when the parser should skip emtpy lines
        printerNewline - The string to use when printing a newline
    • Method Detail

      • getDelimiter

        public char getDelimiter()
      • getEncapsulator

        public char getEncapsulator()
      • getCommentStart

        public char getCommentStart()
      • isCommentingDisabled

        public boolean isCommentingDisabled()
      • getEscape

        public char getEscape()
      • getIgnoreLeadingWhitespaces

        public boolean getIgnoreLeadingWhitespaces()
      • getIgnoreTrailingWhitespaces

        public boolean getIgnoreTrailingWhitespaces()
      • getUnicodeEscapeInterpretation

        public boolean getUnicodeEscapeInterpretation()
      • getIgnoreEmptyLines

        public boolean getIgnoreEmptyLines()
      • getPrinterNewline

        public String getPrinterNewline()