java文件转换格式,如何将文件从一种格式转换为java中的任何其他格式?

Is there any java utility or library available that can help me convert file data in CSV, JSON or XML to any other type.

e.g:

CSV -> JSON

CSV -> XML

JSON -> CSV

JSON -> XML

XML -> CSV

XML -> JSON

Any idea how I can go about this? File size will be a minimum of 100mb so looking at the most process efficient solution.

解决方案

FasterXML (Jackson) has the support to read and write to CSV,XML and JSON.

If the format of the data is fixed, it could be read into Java objects, and then output for the different type could be generated by defining annotations

Else, a generic solution mentioned by Programmer Bruce at Parsing XML into JSON could be used.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值