class CSVParser implements Iterable<CSVRecord>, Closeable {

    public List<CSVRecord> getRecords() throws IOException {
        final List<CSVRecord> records = new ArrayList<CSVRecord>();
        CSVRecord rec;
        while ((rec = this.nextRecord()) != null) {
            records.add(rec);
        }
        return records;
    }

    public  CSVParser(final Reader reader, final CSVFormat format);

}