-
Notifications
You must be signed in to change notification settings - Fork 76
CsvParser
arnaudroger edited this page Dec 10, 2014
·
19 revisions
Java 8
try (FileReader reader : new FileReader(myfile)) {
CsvParser
.skip(2)
.stream(reader)
.map(Arrays::toString)
.forEach(System.out::println);
}
Java 7
try (FileReader reader : new FileReader(myfile)) {
CsvParser.skip(2).parse(reader,
new StringArrayConsumer<>(
new RowHandler<String[]>() {
public void handle(String[] strings) throws Exception {
System.out.println(Arrays.toString(strings);
}
}));
}