Package org.apache.solr.internal.csv
Class CSVStrategy
java.lang.Object
org.apache.solr.internal.csv.CSVStrategy
- All Implemented Interfaces:
Serializable,Cloneable
CSVStrategy
Represents the strategy for a CSV.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic charstatic Stringstatic final CSVStrategystatic charstatic charstatic final CSVStrategystatic final CSVStrategy -
Constructor Summary
ConstructorsConstructorDescriptionCSVStrategy(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
Modifier and TypeMethodDescriptioncharcharcharcharbooleanbooleanbooleanbooleanboolean
-
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
-
DEFAULT_STRATEGY
-
EXCEL_STRATEGY
-
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 separationencapsulator- a Char used as value encapsulation markercommentStart- a Char used for comment identificationescape- a Char used for escapingignoreLeadingWhitespaces- TRUE when leading whitespaces should be ignoredignoreTrailingWhitespaces- TRUE when trailing 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 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
-