|
||||||||||
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.CommonParserSettings<CsvFormat>
com.univocity.parsers.csv.CsvParserSettings
public class CsvParserSettings
This is the configuration class used by the CSV parser (CsvParser
)
In addition to the configuration options provided by CommonParserSettings
, the CSVParserSettings include:
When reading, if the parser does not read any character from the input, and the input is within quotes, the empty is used instead of an empty string
CsvParser
,
CsvFormat
,
CommonParserSettings
Constructor Summary | |
---|---|
CsvParserSettings()
|
Method Summary | |
---|---|
protected CsvFormat |
createDefaultFormat()
Returns the default CsvFormat configured to handle CSV inputs compliant to the RFC4180 standard. |
String |
getEmptyValue()
Returns the String representation of an empty value (defaults to null) |
protected CharAppender |
newCharAppender()
Returns an instance of CharAppender with the configured limit of maximum characters per column and the default value used to represent an empty value (when the String parsed from the input, within quotes, is empty) |
void |
setEmptyValue(String emptyValue)
Sets the String representation of an empty value (defaults to null) |
Methods inherited from class com.univocity.parsers.common.CommonParserSettings |
---|
getInputBufferSize, getNumberOfRecordsToRead, getReadInputOnSeparateThread, getRowProcessor, isColumnReorderingEnabled, isHeaderExtractionEnabled, setColumnReorderingEnabled, setHeaderExtractionEnabled, setInputBufferSize, setNumberOfRecordsToRead, setReadInputOnSeparateThread, setRowProcessor |
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 CsvParserSettings()
Method Detail |
---|
public String getEmptyValue()
When reading, if the parser does not read any character from the input, and the input is within quotes, the empty is used instead of an empty string
public void setEmptyValue(String emptyValue)
When reading, if the parser does not read any character from the input, and the input is within quotes, the empty is used instead of an empty string
emptyValue
- the String representation of an empty valueprotected CharAppender newCharAppender()
This overrides the parent's version because the CSV parser does not rely on the appender to identify null values, but on the other hand, the appender is required to identify empty values.
newCharAppender
in class CommonParserSettings<CsvFormat>
protected CsvFormat createDefaultFormat()
createDefaultFormat
in class CommonSettings<CsvFormat>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |