Open hrj opened 9 years ago
Instead of:
DbfRecord rec; while ((rec = reader.read()) != null) { System.out.println("Record #" + rec.getRecordNumber() + ": " + rec.toMap()); }
it would be nicer to write:
for (final DbfRecord rec: reader.getRecordIterator()) { System.out.println("Record #" + rec.getRecordNumber() + ": " + rec.toMap()); }
Using an iterator avoids keeping a mutable reference to DbfRecord.
Instead of:
it would be nicer to write:
Using an iterator avoids keeping a mutable reference to DbfRecord.