CsvCallbackHandler implementation that returns a CsvRecord for each record.
Example:
CsvRecordHandler handler = CsvRecordHandler.builder()
.fieldModifier(FieldModifiers.TRIM)
.build();
This implementation is stateful and must not be reused.
| Modifier and Type | Class and Description |
|---|---|
| public static class | CsvRecordHandler.
A builder for |
| Access | Constructor and Description |
|---|---|
| private | CsvRecordHandler(final int maxFields, final int maxFieldSize, final int maxRecordSize, final FieldModifier fieldModifier)
|
| Modifier and Type | Method and Description |
|---|---|
| public static CsvRecordHandler. | |
| protected CsvRecord | buildRecord()
Implements abstract de. Called at the end of each CSV record to build the actual record representation. |
| public static CsvRecordHandler | |
| public static CsvRecordHandler | Returns: the new instancethe configuration, must not be configurernullConstructs a new instance of this class with the given configuration. |
| CsvRecordHandler | back to summary |
|---|---|
| private CsvRecordHandler(final int maxFields, final int maxFieldSize, final int maxRecordSize, final FieldModifier fieldModifier) | |
| builder | back to summary |
|---|---|
| public static CsvRecordHandler. Constructs a new builder instance for this class.
| |
| buildRecord | back to summary |
|---|---|
| protected CsvRecord buildRecord() Implements abstract de. Doc from de. Called at the end of each CSV record to build the actual record representation.
| |
| of | back to summary |
|---|---|
| public static CsvRecordHandler of() Constructs a new instance of this class with default settings.
| |
| of | back to summary |
|---|---|
| public static CsvRecordHandler of(final Consumer<CsvRecordHandler. Constructs a new instance of this class with the given configuration. This is an alternative to the builder pattern for convenience.
| |
CsvRecordHandler.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public CsvRecordHandler | |
| protected CsvRecordHandler. | self()
Implements abstract de. Method to be implemented by subclasses to return the correct type. |
| CsvRecordHandlerBuilder | back to summary |
|---|---|
| private CsvRecordHandlerBuilder() | |
| build | back to summary |
|---|---|
| public CsvRecordHandler build() Builds the
| |
| self | back to summary |
|---|---|
| protected CsvRecordHandler. Implements abstract de. Method to be implemented by subclasses to return the correct type.
| |