Skip to content
arnaudroger edited this page Dec 10, 2014 · 19 revisions

Quick Start

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);
		}
	}));
}
Clone this wiki locally