如何从Java读取OSX .plist文件? [英] How to read OSX .plist files from Java?

查看:388
本文介绍了如何从Java读取OSX .plist文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从Java中阅读OSX .plist文件

How to read OSX .plist files from Java?

推荐答案

Imho从Java运行命令行工具并不是最好的工作方式。

Imho running a commandline tool from Java is not quite the "best way to do the job".

在JAVA中有几种更好的方法可以处理二进制plist:我首选的是Daniel Dreibrodt提供的一个有用的小项目: google project hosting

There are several much better ways to deal with binary plist in JAVA: That one I prefere is an usefull little project by Daniel Dreibrodt at: google project hosting

您还可以使用 Apache Commons Configuration (API支持Property List格式)。有关OSX上的.plist格式的历史的更多信息(该版本引入了哪种格式)我在博客

You can also use Apache Commons Configuration (which API is supporting the Property List format). More information about the history of the .plist-format on OSX (which version introduced which format) I wrote up on my blog

更新:托管了一个新项目在源伪造名为属性列表库,应该能够读取和写入.plist - 我没有测试过,但听起来很有趣。

Update: There is a new project hosted at source forge called Property List Library, that shall be able to read AND write .plist- I have not tested it, but it sounds interesting.

这篇关于如何从Java读取OSX .plist文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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