public class RFC4180ParserBuilder extends Object
Example code for using this class:
final RFC4180Parser parser =
new RFC4180ParserBuilder()
.withSeparator('\t')
.build();
RFC4180Parser
Constructor and Description |
---|
RFC4180ParserBuilder()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
RFC4180Parser |
build()
Constructs RFC4180Parser.
|
char |
getQuoteChar() |
char |
getSeparator() |
CSVReaderNullFieldIndicator |
nullFieldIndicator() |
RFC4180ParserBuilder |
withFieldAsNull(CSVReaderNullFieldIndicator fieldIndicator)
Sets the NullFieldIndicator.
|
RFC4180ParserBuilder |
withQuoteChar(char quoteChar)
Sets the character to use for quoted elements.
|
RFC4180ParserBuilder |
withSeparator(char separator)
Sets the delimiter to use for separating entries.
|
public char getSeparator()
public char getQuoteChar()
public CSVReaderNullFieldIndicator nullFieldIndicator()
public RFC4180Parser build()
public RFC4180ParserBuilder withSeparator(char separator)
separator
- The delimiter to use for separating entriespublic RFC4180ParserBuilder withQuoteChar(char quoteChar)
quoteChar
- The character to use for quoted element.public RFC4180ParserBuilder withFieldAsNull(CSVReaderNullFieldIndicator fieldIndicator)
fieldIndicator
- CSVReaderNullFieldIndicator set to what should be considered a null field.Copyright © 2005–2023. All rights reserved.