Skip to content

greengerong/opencsv-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build status: Build Status

depends:

 <dependency>
  <groupId>com.github.greengerong</groupId>
  <artifactId>opencsv.utils</artifactId>
  <version>1.2</version>
</dependency>

===============================

 public class Person {
 
     private int id;
 
     @Csv("person name")
     private String name;
 
     @Ignore
     private int age;
 
     ............
  }

For person object mapping will be :

  id  => id
 
  name => person name
 
  It will ignore age field.

===============================

Also util for map:

  CsvMapperUtil :
 
  1:public <T> List<T> fromCsv(Class<T> type, Reader reader)
 
  2:public <T> void toCsv(Class<T> type, List<T> list, Writer writer) throws Exception

About

opencsv-utils

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages