Package org.apache.solr.internal.csv
Class CSVStrategy
- java.lang.Object
-
- org.apache.solr.internal.csv.CSVStrategy
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class CSVStrategy extends Object implements Cloneable, Serializable
CSVStrategyRepresents the strategy for a CSV.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static char
COMMENTS_DISABLED
static String
DEFAULT_PRINTER_NEWLINE
static CSVStrategy
DEFAULT_STRATEGY
static char
ENCAPSULATOR_DISABLED
static char
ESCAPE_DISABLED
static CSVStrategy
EXCEL_STRATEGY
static CSVStrategy
TDF_STRATEGY
-
Constructor Summary
Constructors Constructor Description CSVStrategy(char delimiter, char encapsulator, char commentStart)
CSVStrategy(char delimiter, char encapsulator, char commentStart, char escape, boolean ignoreLeadingWhitespaces, boolean ignoreTrailingWhitespaces, boolean interpretUnicodeEscapes, boolean ignoreEmptyLines, String printerNewline)
Customized CSV strategy setter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char
getCommentStart()
char
getDelimiter()
char
getEncapsulator()
char
getEscape()
boolean
getIgnoreEmptyLines()
boolean
getIgnoreLeadingWhitespaces()
boolean
getIgnoreTrailingWhitespaces()
String
getPrinterNewline()
boolean
getUnicodeEscapeInterpretation()
boolean
isCommentingDisabled()
-
-
-
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 separationencapsulator
- a Char used as value encapsulation markercommentStart
- a Char used for comment identificationescape
- a Char used for escapingignoreTrailingWhitespaces
- TRUE when trailing whitespaces should be ignoredignoreLeadingWhitespaces
- TRUE when leading whitespaces should be ignoredinterpretUnicodeEscapes
- TRUE when unicode escapes should be interpretedignoreEmptyLines
- TRUE when the parser should skip emtpy linesprinterNewline
- 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()
-
-