Row-Bean is a CSV-Bean JAVA API . Row-Bean provides CSV reader an writer. More ever provides a mechanism to map csv file content to java beans and revers. For each use, a XML description must describe the wished mapping. Another possibility consists in use Annotations.
Use under maven :
<!-- row bean with annotations -->
<dependencies>
<dependency>
<groupId>net.sf.csv-bean</groupId>
<artifactId>row-bean-annotations</artifactId>
<version>1.1.0</version>
</dependency>
</dependencies>
<!-- row bean without annotations -->
<dependencies>
<dependency>
<groupId>net.sf.csv-bean</groupId>
<artifactId>row-bean-core</artifactId>
<version>1.1.0</version>
</dependency>
</dependencies>
Features
- Since 1.1.0 version, this api is distributed on the public maven repository
- Mapping by annotations
- XML Mapping alternative
- CSV and ODS file
- CSV reader/writer configurable(delimiter, separator, charset,...)
- RFC 4180 compliance
- Automatic data conversion (number, enum, string, boolean, ...) and date conversion
- Custom conversion
- String transformation(trim, upercase, replacement,...)