String[] str = {"name=\"bob\",family=\"Jackson\"", "name=\"Andy\",family=\"Richardson\"
"}
CsvReader csvReader;
for (String aStr : str){
// csvReader =
CsvReader.parse(aStr); <<--- Doesn't worked either
csvReader = new CsvReader(
new ByteArrayInputStream(aStr.getBytes(Charset.forName("ISO-8859-1"))),
',',
Charset.defaultCharset());
for (int i=0; i<csvReader.getColumnCount(); i++){
System.out.print("%s = %s, ", csvReader.getHeader(i), csvReader.get(i));
}
System.out.println("\n\n");
}