
org.sfm.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 Show documentation
Show all versions of sfm Show documentation
Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.
Uses header to match to the property.
```java
public class MyParser {
private final CsvMapper mapper =
CsvMapperFactory.newInstance().newMapper(MyObject.class);
public void printAll(Writer writer, Reader reader) throws IOException {
mapper.forEach(reader, (o) -> writer.append(o.toString()).append("\n"));
}
}
```
Supported type
------
Csv mapper 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.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy