Class CSVStrategy

java.lang.Object
org.apache.solr.internal.csv.CSVStrategy
All Implemented Interfaces:
Serializable, Cloneable

public class CSVStrategy extends Object implements Cloneable, Serializable
CSVStrategy

Represents the strategy for a CSV.

See Also:
  • Field Details

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

    • 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
      ignoreLeadingWhitespaces - TRUE when leading whitespaces should be ignored
      ignoreTrailingWhitespaces - TRUE when trailing 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 Details

    • 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()