Package org.instancio.feed
Interface FormatOptionsProvider.FormatOptions.CsvFormatOptions
- All Superinterfaces:
FormatOptionsProvider.FormatOptions
- Enclosing interface:
FormatOptionsProvider.FormatOptions
@ExperimentalApi
public static interface FormatOptionsProvider.FormatOptions.CsvFormatOptions
extends FormatOptionsProvider.FormatOptions
Interface for configuring CSV data format options.
- Since:
- 5.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.instancio.feed.FormatOptionsProvider.FormatOptions
FormatOptionsProvider.FormatOptions.CsvFormatOptions -
Method Summary
Modifier and TypeMethodDescriptioncommentPrefix(String commentPrefix) Sets the comment prefix (lines starting with this prefix will be treated as comments); default value is"#".delimiter(char delimiter) Sets the delimiter character; default value is','.trim(FeedDataTrim feedDataTrim) Specifies whether values should be trimmed of whitespace.
-
Method Details
-
commentPrefix
@ExperimentalApi FormatOptionsProvider.FormatOptions.CsvFormatOptions commentPrefix(String commentPrefix) Sets the comment prefix (lines starting with this prefix will be treated as comments); default value is"#".- Parameters:
commentPrefix- the prefix for comment lines- Returns:
- builder reference
- Since:
- 5.0.0
-
delimiter
Sets the delimiter character; default value is','.- Parameters:
delimiter- the character to use as the delimiter- Returns:
- builder reference
- Since:
- 5.0.0
-
trim
@ExperimentalApi FormatOptionsProvider.FormatOptions.CsvFormatOptions trim(FeedDataTrim feedDataTrim) Specifies whether values should be trimmed of whitespace.The default behaviour is determined by the
Keys.FEED_DATA_TRIMsetting.- Parameters:
feedDataTrim- the data trimming mode- Returns:
- builder reference
- Since:
- 5.0.0
-