org.apache.commons.csv
Class CSVStrategy
java.lang.Object
org.apache.commons.csv.CSVStrategy
- Cloneable, Serializable
public class CSVStrategy
extends java.lang.Object
implements Cloneable, Serializable
CSVStrategy
Represents the strategy for a CSV.
CSVStrategy(char delimiter, char encapsulator, char commentStart)
|
CSVStrategy(char delimiter, char encapsulator, char commentStart, boolean ignoreLeadingWhitespace, boolean interpretUnicodeEscapes, boolean ignoreEmptyLines) - Customized CSV strategy setter.
|
COMMENTS_DISABLED
public static char COMMENTS_DISABLED
DEFAULT_STRATEGY
public static CSVStrategy DEFAULT_STRATEGY
commentStart
private char commentStart
delimiter
private char delimiter
encapsulator
private char encapsulator
ignoreEmptyLines
private boolean ignoreEmptyLines
ignoreLeadingWhitespaces
private boolean ignoreLeadingWhitespaces
interpretUnicodeEscapes
private boolean interpretUnicodeEscapes
CSVStrategy
public CSVStrategy(char delimiter,
char encapsulator,
char commentStart)
CSVStrategy
public CSVStrategy(char delimiter,
char encapsulator,
char commentStart,
boolean ignoreLeadingWhitespace,
boolean interpretUnicodeEscapes,
boolean ignoreEmptyLines)
Customized CSV strategy setter.
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
clone
public Object clone()
getCommentStart
public char getCommentStart()
getDelimiter
public char getDelimiter()
getEncapsulator
public char getEncapsulator()
getIgnoreEmptyLines
public boolean getIgnoreEmptyLines()
getIgnoreLeadingWhitespaces
public boolean getIgnoreLeadingWhitespaces()
getUnicodeEscapeInterpretation
public boolean getUnicodeEscapeInterpretation()
isCommentingDisabled
public boolean isCommentingDisabled()
setCommentStart
public void setCommentStart(char commentStart)
setDelimiter
public void setDelimiter(char delimiter)
setEncapsulator
public void setEncapsulator(char encapsulator)
setIgnoreEmptyLines
public void setIgnoreEmptyLines(boolean ignoreEmptyLines)
setIgnoreLeadingWhitespaces
public void setIgnoreLeadingWhitespaces(boolean ignoreLeadingWhitespaces)
setUnicodeEscapeInterpretation
public void setUnicodeEscapeInterpretation(boolean interpretUnicodeEscapes)