Search in sources :

Example 1 with FieldMapperToAppendableFactory

use of org.simpleflatmapper.csv.mapper.FieldMapperToAppendableFactory in project SimpleFlatMapper by arnaudroger.

the class CsvWriterBuilder method newBuilder.

public static <T> CsvWriterBuilder<T> newBuilder(ClassMeta<T> classMeta, CellWriter cellWriter) {
    MapperConfig<CsvColumnKey, FieldMapperColumnDefinition<CsvColumnKey>> config = MapperConfig.<CsvColumnKey>fieldMapperConfig();
    FieldMapperToAppendableFactory appenderFactory = new FieldMapperToAppendableFactory(cellWriter);
    CsvWriterBuilder<T> builder = new CsvWriterBuilder<T>(classMeta, config, appenderFactory, cellWriter);
    return builder;
}
Also used : FieldMapperColumnDefinition(org.simpleflatmapper.map.property.FieldMapperColumnDefinition) FieldMapperToAppendableFactory(org.simpleflatmapper.csv.mapper.FieldMapperToAppendableFactory)

Aggregations

FieldMapperToAppendableFactory (org.simpleflatmapper.csv.mapper.FieldMapperToAppendableFactory)1 FieldMapperColumnDefinition (org.simpleflatmapper.map.property.FieldMapperColumnDefinition)1