Android 是否需要 JAXB 实现? [英] Is there a need in JAXB implementation for Android?

查看:31
本文介绍了Android 是否需要 JAXB 实现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,目前没有可以在 Android 平台上运行的 JAXB 实现.

As far as I know, there is currently no JAXB implementation which would work on the Android platform.

我想问一个简单的问题 - Android 上是否需要 JAXB?

I would like to ask a simple question - Is there a need for JAXB on Android?

作为 JAXB 爱好者,我考虑为 Android 编写 JAXB 实现.我可能不会移植 JAXB RI,因为它对于移动应用程序来说有点太胖了,我宁愿从头开始编写它.我写了一个 JavaScript 的 JAXB 端口,所以我知道这是可以管理的.

Being a JAXB enthusiast, I consider writing a JAXB implementation for Android. I probably won't port JAXB RI since it is a bit too fat for the mobile apps, I'd rather write it from scratch. I wrote a JAXB port for JavaScript, so I know this is manageable.

但是你们需要吗?或者您是否对 SimpleXML 等其他工具感到满意?

But do you guys need it? Or do are you comfortable with other tools like SimpleXML?

推荐答案

作为一名 Android 开发人员,他几乎在我开发的每个应用程序中都进行了大量的 XML 和 JSON 解析和框架处理,我的回答是:不,不需要Android 上的 JAXB.其他工具完全符合要求.要么如此,要么我们 Android 开发人员已经习惯了 JAXB 的缺失,而我们每个人都对其中一种替代方案感到满意.

As an Android developer who does lot of XML and JSON parsing and framing in almost every app I develop, my answer would be: No, there is no need for JAXB on Android. The other tools fit the bill perfectly. Either that, or we Android developers have got used to the absence of JAXB and each of us have gotten comfortable with one of the alternatives.

就我而言,我什至通过在服务器上用我最喜欢的 Android XML 序列化库替换 JAXB 来实现代码重用.

In my case, I even achieve code reuse by replacing JAXB with my favorite Android XML serialization library on the server as well.

这篇关于Android 是否需要 JAXB 实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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