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

org.simpleflatmapper.csv.getter.CustomReaderGetter Maven / Gradle / Ivy

Go to download

Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.

There is a newer version: 9.0.2
Show newest version
package org.simpleflatmapper.csv.getter;

import org.simpleflatmapper.converter.Context;
import org.simpleflatmapper.csv.CellValueReader;
import org.simpleflatmapper.csv.CsvRow;
import org.simpleflatmapper.map.getter.ContextualGetter;

public  class CustomReaderGetter

implements ContextualGetter { private final CellValueReader reader; private final int index; public CustomReaderGetter(int index, CellValueReader reader) { this.index = index; this.reader = reader; } @Override public P get(CsvRow target, Context context) throws Exception { return (P) target.read(reader, index); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy