List of usage examples for com.fasterxml.jackson.dataformat.csv CsvSchema emptySchema
public static CsvSchema emptySchema()
From source file:org.wso2.developerstudio.datamapper.diagram.schemagen.util.SchemaGeneratorForCSV.java
/** * Read objects from CSV/*from www. ja v a2 s .c o m*/ * * @param content * @return * @throws IOException */ public List<Map<String, String>> readObjectsFromCsv(String content) throws IOException { CsvMapper mapper = new CsvMapper(); CsvSchema schema = CsvSchema.emptySchema().withHeader(); MappingIterator<Map<String, String>> it = mapper.readerFor(Map.class).with(schema).readValues(content); return it.readAll(); }