Apache Commons CSV 1.1 发布
jopen 10年前
Commons CSV 是一个用来读写各种 Comma Separated Value (CSV) 格式文件的 Java 库.
Reader in = new FileReader("path/to/file.csv"); Iterable<CSVRecord> records = CSVFormat.EXCEL.parse(in); for (CSVRecord record : records) { String lastName = record.get("Last Name"); String firstName = record.get("First Name"); }
Apache Commons CSV 1.1 发布,此版本更新内容如下:
新特性o [CSV-129] Add CSVFormat#with 0-arg methods matching boolean arg methods.
o [CSV-131] Save positions of records to enable random access. Thanks to
Holger Stratmann.
o [CSV-139] CSVPrinter.printRecord(ResultSet) with metadata.
Bugs 修复
o [CSV-140] QuoteMode.NON_NUMERIC doesn't work with
CSVPrinter.printRecords(ResultSet). Thanks to Damjan Jovanovic.
o [CSV-130] CSVFormat#withHeader doesn't work well with #printComment, add
withHeaderComments(String...). Thanks to Sergei Lebedev.
o [CSV-128] CSVFormat.EXCEL should ignore empty header names.
o [CSV-132] Incorrect Javadoc referencing org.apache.commons.csv.CSVFormat
withQuote(). Thanks to Sascha Szott.
改进:
o [CSV-124] Improve toString() implementation of CSVRecord. Thanks to
Kalyan.
o [CSV-134] Unified parameter validation. Thanks to wu wen.
更多内容请看:
Site: http://commons.apache.org/proper/commons-csv/
Download: http://commons.apache.org/csv/download_codec.cgi
Happy Coding!
Happy Thanksgiving!
Gary Gregory on behalf of the Apache Commons CSV team
来自:http://www.oschina.net/p/commons-csv