用于 Java 的 CSV API [英] CSV API for Java

查看:26
本文介绍了用于 Java 的 CSV API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以推荐一个简单的 API,它允许我使用读取 CSV 输入文件,进行一些简单的转换,然后编写它.

一个快速的谷歌发现 http://flatpack.sourceforge.net/ 看起来很有希望.>

我只是想在我使用这个 API 之前检查一下其他人在使用什么.

解决方案

Apache Commons CSV

查看 Apache Common CSV.

这个库读取和写入 CSV 的几种变体,包括标准的 RFC 4180.还可以读取/写入制表符分隔的文件.

  • Excel
  • InformixUnload
  • InformixUnloadCsv
  • MySQL
  • 甲骨文
  • PostgreSQLCsv
  • PostgreSQL 文本
  • RFC4180
  • TDF

Can anyone recommend a simple API that will allow me to use read a CSV input file, do some simple transformations, and then write it.

A quick google has found http://flatpack.sourceforge.net/ which looks promising.

I just wanted to check what others are using before I couple myself to this API.

解决方案

Apache Commons CSV

Check out Apache Common CSV.

This library reads and writes several variations of CSV, including the standard one RFC 4180. Also reads/writes Tab-delimited files.

  • Excel
  • InformixUnload
  • InformixUnloadCsv
  • MySQL
  • Oracle
  • PostgreSQLCsv
  • PostgreSQLText
  • RFC4180
  • TDF

这篇关于用于 Java 的 CSV API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆