org.simpleflatmapper.csv.impl.writer.CellSeparatorAppender Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sfm-csv Show documentation
Show all versions of sfm-csv Show documentation
Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.
The newest version!
package org.simpleflatmapper.csv.impl.writer;
import org.simpleflatmapper.lightningcsv.CellWriter;
import org.simpleflatmapper.map.FieldMapper;
import org.simpleflatmapper.map.MappingContext;
public class CellSeparatorAppender
implements FieldMapper {
private final CellWriter cellWriter;
public CellSeparatorAppender(CellWriter cellWriter) {
this.cellWriter = cellWriter;
}
@Override
public void mapTo(T source, Appendable target, MappingContext super T> context) throws Exception {
cellWriter.nextCell(target);
}
}