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
CSVStrategy
Represents the strategy for a CSV.
- See Also:
- Serialized Form
Constructor Summary |
CSVStrategy(char delimiter,
char encapsulator,
char commentStart)
|
CSVStrategy(char delimiter,
char encapsulator,
char commentStart,
boolean ignoreLeadingWhitespace,
boolean interpretUnicodeEscapes,
boolean ignoreEmptyLines)
Deprecated. Use CSVStrategy(char, char, char, char, boolean, boolean, boolean, boolean) |
CSVStrategy(char delimiter,
char encapsulator,
char commentStart,
char escape,
boolean ignoreLeadingWhitespace,
boolean ignoreTrailingWhitespace,
boolean interpretUnicodeEscapes,
boolean ignoreEmptyLines)
Customized CSV strategy setter. |
COMMENTS_DISABLED
public static char COMMENTS_DISABLED
ESCAPE_DISABLED
public static char ESCAPE_DISABLED
ENCAPSULATOR_DISABLED
public static char ENCAPSULATOR_DISABLED
DEFAULT_STRATEGY
public static CSVStrategy DEFAULT_STRATEGY
EXCEL_STRATEGY
public static CSVStrategy EXCEL_STRATEGY
TDF_STRATEGY
public static CSVStrategy TDF_STRATEGY
CSVStrategy
public CSVStrategy(char delimiter,
char encapsulator,
char commentStart)
CSVStrategy
public CSVStrategy(char delimiter,
char encapsulator,
char commentStart,
char escape,
boolean ignoreLeadingWhitespace,
boolean ignoreTrailingWhitespace,
boolean interpretUnicodeEscapes,
boolean ignoreEmptyLines)
- Customized CSV strategy setter.
- Parameters:
delimiter
- a Char used for value separationencapsulator
- a Char used as value encapsulation markercommentStart
- a Char used for comment identificationignoreLeadingWhitespace
- TRUE when leading whitespaces should be
ignoredinterpretUnicodeEscapes
- TRUE when unicode escapes should be
interpretedignoreEmptyLines
- TRUE when the parser should skip emtpy lines
CSVStrategy
public CSVStrategy(char delimiter,
char encapsulator,
char commentStart,
boolean ignoreLeadingWhitespace,
boolean interpretUnicodeEscapes,
boolean ignoreEmptyLines)
- Deprecated. Use
CSVStrategy(char, char, char, char, boolean, boolean, boolean, boolean)
setDelimiter
public void setDelimiter(char delimiter)
getDelimiter
public char getDelimiter()
setEncapsulator
public void setEncapsulator(char encapsulator)
getEncapsulator
public char getEncapsulator()
setCommentStart
public void setCommentStart(char commentStart)
getCommentStart
public char getCommentStart()
isCommentingDisabled
public boolean isCommentingDisabled()
setEscape
public void setEscape(char escape)
getEscape
public char getEscape()
setIgnoreLeadingWhitespaces
public void setIgnoreLeadingWhitespaces(boolean ignoreLeadingWhitespaces)
getIgnoreLeadingWhitespaces
public boolean getIgnoreLeadingWhitespaces()
setIgnoreTrailingWhitespaces
public void setIgnoreTrailingWhitespaces(boolean ignoreTrailingWhitespaces)
getIgnoreTrailingWhitespaces
public boolean getIgnoreTrailingWhitespaces()
setUnicodeEscapeInterpretation
public void setUnicodeEscapeInterpretation(boolean interpretUnicodeEscapes)
getUnicodeEscapeInterpretation
public boolean getUnicodeEscapeInterpretation()
setIgnoreEmptyLines
public void setIgnoreEmptyLines(boolean ignoreEmptyLines)
getIgnoreEmptyLines
public boolean getIgnoreEmptyLines()
setPrinterNewline
public void setPrinterNewline(String newline)
getPrinterNewline
public String getPrinterNewline()
clone
public Object clone()
- Overrides:
clone
in class Object
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.