T - The type of the bean being processedpublic class HeaderColumnNameTranslateMappingStrategyBuilder<T> extends AbstractMappingStrategyBuilder<T,HeaderColumnNameTranslateMappingStrategy<T>>
HeaderColumnNameMappingStrategy.
This allows opencsv to introduce new options for mapping strategies
while maintaining backward compatibility and without creating
reams of constructors for the mapping strategy.type| Constructor and Description |
|---|
HeaderColumnNameTranslateMappingStrategyBuilder()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
HeaderColumnNameTranslateMappingStrategy<T> |
build()
Builds a new mapping strategy for parsing/writing.
|
HeaderColumnNameTranslateMappingStrategyBuilder<T> |
withForceCorrectRecordLength(boolean forceCorrectRecordLength)
Insists that every record will be considered to be of the correct
length (that is, the same number of columns as the header).
|
withTypepublic HeaderColumnNameTranslateMappingStrategyBuilder()
public HeaderColumnNameTranslateMappingStrategy<T> build()
AbstractMappingStrategyBuilderbuild in class AbstractMappingStrategyBuilder<T,HeaderColumnNameTranslateMappingStrategy<T>>public HeaderColumnNameTranslateMappingStrategyBuilder<T> withForceCorrectRecordLength(boolean forceCorrectRecordLength)
Excess fields at the end of a record will be ignored. Missing
fields at the end of a record will be interpreted as null.
This is only relevant on reading.
If not set, incorrect record length will throw an exception. That
is, the default value is false.
forceCorrectRecordLength - Whether records should be forced to
the correct lengththisCopyright © 2005–2025. All rights reserved.