public class CSVStrategy extends Object implements Cloneable, Serializable
Modifier and Type | Field and Description |
---|---|
static char |
COMMENTS_DISABLED |
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,
boolean ignoreLeadingWhitespace,
boolean interpretUnicodeEscapes,
boolean ignoreEmptyLines)
|
CSVStrategy(char delimiter,
char encapsulator,
char commentStart,
char escape,
boolean ignoreLeadingWhitespace,
boolean ignoreTrailingWhitespace,
boolean interpretUnicodeEscapes,
boolean ignoreEmptyLines)
Customized CSV strategy setter.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
char |
getCommentStart() |
char |
getDelimiter() |
char |
getEncapsulator() |
char |
getEscape() |
boolean |
getIgnoreEmptyLines() |
boolean |
getIgnoreLeadingWhitespaces() |
boolean |
getIgnoreTrailingWhitespaces() |
String |
getPrinterNewline() |
boolean |
getUnicodeEscapeInterpretation() |
boolean |
isCommentingDisabled() |
void |
setCommentStart(char commentStart) |
void |
setDelimiter(char delimiter) |
void |
setEncapsulator(char encapsulator) |
void |
setEscape(char escape) |
void |
setIgnoreEmptyLines(boolean ignoreEmptyLines) |
void |
setIgnoreLeadingWhitespaces(boolean ignoreLeadingWhitespaces) |
void |
setIgnoreTrailingWhitespaces(boolean ignoreTrailingWhitespaces) |
void |
setPrinterNewline(String newline) |
void |
setUnicodeEscapeInterpretation(boolean interpretUnicodeEscapes) |
public static char COMMENTS_DISABLED
public static char ESCAPE_DISABLED
public static char ENCAPSULATOR_DISABLED
public static CSVStrategy DEFAULT_STRATEGY
public static CSVStrategy EXCEL_STRATEGY
public static CSVStrategy TDF_STRATEGY
public CSVStrategy(char delimiter, char encapsulator, char commentStart)
public CSVStrategy(char delimiter, char encapsulator, char commentStart, char escape, boolean ignoreLeadingWhitespace, boolean ignoreTrailingWhitespace, boolean interpretUnicodeEscapes, boolean ignoreEmptyLines)
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 linespublic CSVStrategy(char delimiter, char encapsulator, char commentStart, boolean ignoreLeadingWhitespace, boolean interpretUnicodeEscapes, boolean ignoreEmptyLines)
public void setDelimiter(char delimiter)
public char getDelimiter()
public void setEncapsulator(char encapsulator)
public char getEncapsulator()
public void setCommentStart(char commentStart)
public char getCommentStart()
public boolean isCommentingDisabled()
public void setEscape(char escape)
public char getEscape()
public void setIgnoreLeadingWhitespaces(boolean ignoreLeadingWhitespaces)
public boolean getIgnoreLeadingWhitespaces()
public void setIgnoreTrailingWhitespaces(boolean ignoreTrailingWhitespaces)
public boolean getIgnoreTrailingWhitespaces()
public void setUnicodeEscapeInterpretation(boolean interpretUnicodeEscapes)
public boolean getUnicodeEscapeInterpretation()
public void setIgnoreEmptyLines(boolean ignoreEmptyLines)
public boolean getIgnoreEmptyLines()
public void setPrinterNewline(String newline)
public String getPrinterNewline()
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.