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;
}
Aggregations