org.apache.commons.csv
Class CSVStrategy
java.lang.Object
org.apache.commons.csv.CSVStrategy
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class CSVStrategy
- extends java.lang.Object
- implements java.lang.Cloneable, java.io.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. |
CSVStrategy(char delimiter,
char encapsulator,
char commentStart,
char escape,
boolean ignoreLeadingWhitespace,
boolean ignoreTrailingWhitespace,
boolean interpretUnicodeEscapes,
boolean ignoreEmptyLines)
Customized CSV strategy setter. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
delimiter
private char delimiter
encapsulator
private char encapsulator
commentStart
private char commentStart
escape
private char escape
ignoreLeadingWhitespaces
private boolean ignoreLeadingWhitespaces
ignoreTrailingWhitespaces
private boolean ignoreTrailingWhitespaces
interpretUnicodeEscapes
private boolean interpretUnicodeEscapes
ignoreEmptyLines
private boolean ignoreEmptyLines
COMMENTS_DISABLED
public static char COMMENTS_DISABLED
ESCAPE_DISABLED
public static char ESCAPE_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.
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()
clone
public java.lang.Object clone()
- Overrides:
clone
in class java.lang.Object