public class CSVStrategy extends Object implements Cloneable, Serializable
Modifier and Type | Field and 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 and 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)
Deprecated.
Use the ctor that also takes printerNewline. This ctor will be removed in Solr 7.
|
CSVStrategy(char delimiter,
char encapsulator,
char commentStart,
char escape,
boolean ignoreLeadingWhitespaces,
boolean ignoreTrailingWhitespaces,
boolean interpretUnicodeEscapes,
boolean ignoreEmptyLines,
String printerNewline)
Customized CSV strategy setter.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Deprecated.
will be removed in Solr 7
|
char |
getCommentStart() |
char |
getDelimiter() |
char |
getEncapsulator() |
char |
getEscape() |
boolean |
getIgnoreEmptyLines() |
boolean |
getIgnoreLeadingWhitespaces() |
boolean |
getIgnoreTrailingWhitespaces() |
String |
getPrinterNewline() |
boolean |
getUnicodeEscapeInterpretation() |
boolean |
isCommentingDisabled() |
void |
setCommentStart(char commentStart)
Deprecated.
will be removed in Solr 7
|
void |
setDelimiter(char delimiter)
Deprecated.
will be removed in Solr 7
|
void |
setEncapsulator(char encapsulator)
Deprecated.
will be removed in Solr 7
|
void |
setEscape(char escape)
Deprecated.
will be removed in Solr 7
|
void |
setIgnoreEmptyLines(boolean ignoreEmptyLines)
Deprecated.
will be removed in Solr 7
|
void |
setIgnoreLeadingWhitespaces(boolean ignoreLeadingWhitespaces)
Deprecated.
will be removed in Solr 7
|
void |
setIgnoreTrailingWhitespaces(boolean ignoreTrailingWhitespaces)
Deprecated.
will be removed in Solr 7
|
void |
setPrinterNewline(String newline)
Deprecated.
will be removed in Solr 7
|
void |
setUnicodeEscapeInterpretation(boolean interpretUnicodeEscapes)
Deprecated.
will be removed in Solr 7
|
public static char COMMENTS_DISABLED
public static char ESCAPE_DISABLED
public static char ENCAPSULATOR_DISABLED
public static String DEFAULT_PRINTER_NEWLINE
public static final CSVStrategy DEFAULT_STRATEGY
public static final CSVStrategy EXCEL_STRATEGY
public static final CSVStrategy TDF_STRATEGY
public CSVStrategy(char delimiter, char encapsulator, char commentStart)
public CSVStrategy(char delimiter, char encapsulator, char commentStart, char escape, boolean ignoreLeadingWhitespaces, boolean ignoreTrailingWhitespaces, boolean interpretUnicodeEscapes, boolean ignoreEmptyLines, String printerNewline)
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@Deprecated public CSVStrategy(char delimiter, char encapsulator, char commentStart, char escape, boolean ignoreLeadingWhitespaces, boolean ignoreTrailingWhitespaces, boolean interpretUnicodeEscapes, boolean ignoreEmptyLines)
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 lines@Deprecated public void setDelimiter(char delimiter)
public char getDelimiter()
@Deprecated public void setEncapsulator(char encapsulator)
public char getEncapsulator()
@Deprecated public void setCommentStart(char commentStart)
public char getCommentStart()
public boolean isCommentingDisabled()
@Deprecated public void setEscape(char escape)
public char getEscape()
@Deprecated public void setIgnoreLeadingWhitespaces(boolean ignoreLeadingWhitespaces)
public boolean getIgnoreLeadingWhitespaces()
@Deprecated public void setIgnoreTrailingWhitespaces(boolean ignoreTrailingWhitespaces)
public boolean getIgnoreTrailingWhitespaces()
@Deprecated public void setUnicodeEscapeInterpretation(boolean interpretUnicodeEscapes)
public boolean getUnicodeEscapeInterpretation()
@Deprecated public void setIgnoreEmptyLines(boolean ignoreEmptyLines)
public boolean getIgnoreEmptyLines()
@Deprecated public void setPrinterNewline(String newline)
public String getPrinterNewline()
@Deprecated public Object clone()
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.