All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.simpleflatmapper.csv.impl.writer.CellSeparatorAppender Maven / Gradle / Ivy

Go to download

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 context) throws Exception {
        cellWriter.nextCell(target);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy