Apache Commons CSV 1.1 發布
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
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!