开发者

XMLEncoder does not encode zero values

开发者 https://www.devze.com 2023-01-30 06:04 出处:网络
I\'m encoding a short integer with value 0 and XMLEncoder does not encode it. How can I force i开发者_运维技巧t? XMLEncoder does not encode default values. It saves space. It works.I switched to anot

I'm encoding a short integer with value 0 and XMLEncoder does not encode it.

How can I force i开发者_运维技巧t?


XMLEncoder does not encode default values. It saves space. It works.


I switched to another library: XStream (http://x-stream.github.io/)

Much simpler and it works.

0

精彩评论

暂无评论...
验证码 换一张
取 消