String[] nextRecord1() throws IOException { if(tryNextRecord()){ return this.record.toArray(new String[this.record.size()]); } return null; }
/** * Parses the next record from the current point in the stream. * * @return the record as an array of values, or <tt>null</tt> if the end of the stream has been reached * @throws IOException * on parse error or input read-failure */ CSVRecord nextRecord() throws IOException { if(tryNextRecord()){ return new CSVRecord(this.record.toArray(new String[this.record.size()]), this.headerMap,recordComment,this.recordNumber); } return null; }