|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.supercsv.prefs.CsvPreference
public class CsvPreference
Before reading or writing CSV files, you must supply the reader/writer with a setup (this object)
| Field Summary | |
|---|---|
protected int |
delimiterChar
|
protected String |
endOfLineSymbols
Only used when writing. |
static CsvPreference |
EXCEL_NORTH_EUROPE_PREFERENCE
Ready to use configuration for north european excel CSV files (columns are separated by ";" instead of ",") |
static CsvPreference |
EXCEL_PREFERENCE
Ready to use configuration for reading Windows Excel exported CSV files. |
static CsvPreference |
NO_COMMENT_PREFERENCE
Ready to use configuration. |
protected char |
quoteChar
|
static CsvPreference |
STANDARD_PREFERENCE
Ready to use configuration. |
| Constructor Summary | |
|---|---|
CsvPreference(char quoteChar,
int delimiterChar,
String endOfLineSymbols)
Set the preference for readers and writers |
|
| Method Summary | |
|---|---|
int |
getDelimiterChar()
|
String |
getEndOfLineSymbols()
|
int |
getQuoteChar()
|
CsvPreference |
setDelimiterChar(int delimiterChar)
|
CsvPreference |
setEndOfLineSymbols(String endOfLineSymbols)
|
CsvPreference |
setQuoteChar(char quoteChar)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final CsvPreference STANDARD_PREFERENCE
public static final CsvPreference EXCEL_PREFERENCE
public static final CsvPreference EXCEL_NORTH_EUROPE_PREFERENCE
public static final CsvPreference NO_COMMENT_PREFERENCE
protected char quoteChar
protected int delimiterChar
protected String endOfLineSymbols
| Constructor Detail |
|---|
public CsvPreference(char quoteChar,
int delimiterChar,
String endOfLineSymbols)
quoteChar - Specifies that matching pairs of this character delimit string constants in this tokenizer.delimiterChar - Specifies the character separating each columnendOfLineSymbols - one or more symbols terminating the line, e.g. "\n". This parameter only makes sense for writers| Method Detail |
|---|
public int getDelimiterChar()
public String getEndOfLineSymbols()
public int getQuoteChar()
public CsvPreference setDelimiterChar(int delimiterChar)
public CsvPreference setEndOfLineSymbols(String endOfLineSymbols)
public CsvPreference setQuoteChar(char quoteChar)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||