Class NamedCsvRecordHandler.NamedCsvRecordHandlerBuilder
java.lang.Object
de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler.AbstractInternalCsvCallbackHandlerBuilder<NamedCsvRecordHandler.NamedCsvRecordHandlerBuilder>
de.siegmar.fastcsv.reader.NamedCsvRecordHandler.NamedCsvRecordHandlerBuilder
- Enclosing class:
NamedCsvRecordHandler
public static final class NamedCsvRecordHandler.NamedCsvRecordHandlerBuilder
extends AbstractInternalCsvCallbackHandler.AbstractInternalCsvCallbackHandlerBuilder<NamedCsvRecordHandler.NamedCsvRecordHandlerBuilder>
A builder for
NamedCsvRecordHandler.-
Field Summary
Fields inherited from class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler.AbstractInternalCsvCallbackHandlerBuilder
fieldModifier, maxFields, maxFieldSize, maxRecordSize -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theNamedCsvRecordHandlerinstance.Sets a predefined header.Sets the header.self()Method to be implemented by subclasses to return the correct type.Methods inherited from class de.siegmar.fastcsv.reader.AbstractInternalCsvCallbackHandler.AbstractInternalCsvCallbackHandlerBuilder
fieldModifier, maxFields, maxFieldSize, maxRecordSize
-
Method Details
-
header
Sets a predefined header.
When not set, the header is taken from the first record (that is not a comment).
- Parameters:
header- the header, must not benull- Returns:
- This updated object, allowing additional method calls to be chained together.
- Throws:
NullPointerException- ifnullis passed- See Also:
-
header
Sets the header.
When not set, the header is taken from the first record (that is not a comment).
- Parameters:
header- the header, must not benull- Returns:
- This updated object, allowing additional method calls to be chained together.
- Throws:
NullPointerException- ifnullis passed- See Also:
-
self
Description copied from class:AbstractInternalCsvCallbackHandler.AbstractInternalCsvCallbackHandlerBuilderMethod to be implemented by subclasses to return the correct type.- Specified by:
selfin classAbstractInternalCsvCallbackHandler.AbstractInternalCsvCallbackHandlerBuilder<NamedCsvRecordHandler.NamedCsvRecordHandlerBuilder>- Returns:
- This object of subclass type.
-
build
Builds theNamedCsvRecordHandlerinstance.- Returns:
- the new instance
- Throws:
IllegalArgumentException- if argument constraints are violated (seeAbstractInternalCsvCallbackHandler)
-