org.simpleflatmapper.csv.README.md 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!
Uses header to match to the property.
```java
public class MyParser {
private final CsvMapper parameterGetterMap =
CsvMapperFactory.newInstance().newMapper(MyObject.class);
public void printAll(Writer writer, Reader reader) throws IOException {
parameterGetterMap.forEach(reader, (o) -> writer.append(o.toString()).append("\n"));
}
}
```
Supported type
------
Csv parameterGetterMap can map to :
boolean, byte, char, date, double, enum, float, integer, long short, string
Or any object compose of those. It also can map to list or array.