|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.univocity.parsers.common.CommonSettings<F>
com.univocity.parsers.common.CommonWriterSettings<CsvFormat>
com.univocity.parsers.csv.CsvWriterSettings
public class CsvWriterSettings
This is the configuration class used by the CSV writer (CsvWriter
)
In addition to the configuration options provided by CommonWriterSettings
, the CsvWriterSettings include:
If the writer has an empty String to write to the output, the emptyValue is used instead of an empty string
If this property is set to true, this indicates that all written values should be enclosed within quotes (as defined in CsvFormat
)
CsvWriter
,
CsvFormat
,
CommonWriterSettings
Constructor Summary | |
---|---|
CsvWriterSettings()
|
Method Summary | |
---|---|
protected CsvFormat |
createDefaultFormat()
Returns the default CsvFormat configured to produce CSV outputs compliant to the RFC4180 standard. |
boolean |
getQuoteAllFields()
Indicates that all written values should be enclosed within quotes (as defined in CsvFormat ) |
void |
setQuoteAllFields(boolean quoteAllFields)
Indicates indicates whether or not all written values should be enclosed within quotes (as defined in CsvFormat ) |
Methods inherited from class com.univocity.parsers.common.CommonWriterSettings |
---|
getEmptyValue, getRowWriterProcessor, setEmptyValue, setRowWriterProcessor |
Methods inherited from class com.univocity.parsers.common.CommonSettings |
---|
excludeFields, excludeIndexes, getFormat, getHeaders, getIgnoreLeadingWhitespaces, getIgnoreTrailingWhitespaces, getMaxCharsPerColumn, getMaxColumns, getNullValue, getSkipEmptyLines, selectFields, selectIndexes, setFormat, setHeaders, setIgnoreLeadingWhitespaces, setIgnoreTrailingWhitespaces, setMaxCharsPerColumn, setMaxColumns, setNullValue, setSkipEmptyLines |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CsvWriterSettings()
Method Detail |
---|
public boolean getQuoteAllFields()
CsvFormat
)
(Defaults to false)
public void setQuoteAllFields(boolean quoteAllFields)
CsvFormat
)
(Defaults to false)
By default, only values that contain a field separator are enclosed within quotes.
quoteAllFields
- a flag indicating whether to enclose all fields within quotesprotected CsvFormat createDefaultFormat()
createDefaultFormat
in class CommonSettings<CsvFormat>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |