XStream 1.4.11 发布,Java 对象和 XML 相互转换的工具

栏目: 软件资讯 · 发布时间: 6年前

内容简介:XStream 1.4.11 已发布。XStream是一个Java对象和XML相互转换的工具,很好很强大,它提供了所有的基础类型、数组、集合等类型直接转换的支持。因此XML常用于数据交换、对象序列化。 Minor changes #91, #106: Cle...

XStream 1.4.11 已发布。XStream是一个 Java 对象和XML相互转换的工具,很好很强大,它提供了所有的基础类型、数组、集合等类型直接转换的支持。因此XML常用于数据交换、对象序列化。

Minor changes

  • #91#106: Clean-up data stacks in UnmarshallingContext implementations in case of exception (by Määrt Bakhoff).

  • #2: Unneeded contention in DefaultConverterLookup.

  • #94: Fix PathConverter containing absolute Windows paths.

  • #105: XStream's ObjectInputStream returns wrong values for readUnsignedByte and readUnsignedShort.

  • XSTR-616 and #93: Introduce StringCodec interface to support arbitrary Base64 codec implementations for EncodedByteArrayConverter. Prefer Base64 codec implementations of the Java runtime over XStream's own one.

  • #97: Support to run out of the box in a Java 1.4 runtime is established again.

  • Provide methods in AbstractCollectionConverter that read and write in a balanced way from and to the hierarchical stream.

  • New future-proof method JVM.isVersion to detect major version of Java runtime (incl. Java 10) as replacement for individual JVM.isXY methods.

  • #115: Dom4JDriver ignores character set of Dom4J configuration creating a Writer.

  • #116: Make converters null safe.

  • #123 and #124: Declare XPP dependencies for OSGi as optional.

  • Add XppDriver.createDefaultParser for a simpler access to the default XmlPullParserFactory.

  • Old BEA reference implementation of StAX is outdated, unmaintained and has security issues, therefore XStream's driver has been deprecated.

  • Support for JaCoCo: FieldDictionary ignores synthetic fields starting with $jacoco as name.

Stream compatibility

  • The EncodedByteArrayConverter will now use an encoder by default that does no longer add line breaks as normally required by the RFC 1521 after 76 characters, making it also easier to use the converter for attributes. This will not affect XStream's Base64 decoder.

API changes

  • Added c.t.x.converters.collection.AbstractCollectionConverter.readBareItem(HierarchicalStreamReader, UnmarshallingContext, Object).

  • Added c.t.x.converters.collection.AbstractCollectionConverter.readCompleteItem(HierarchicalStreamReader, UnarshallingContext, Object).

  • Deprecated c.t.x.converters.collection.AbstractCollectionConverter.readItem(HierarchicalStreamReader, UnmarshallingContext, Object).

  • Added c.t.x.converters.collection.AbstractCollectionConverter.writeBareItem(Object, MarshallingContext, HierarchicalStreamWriter).

  • Added c.t.x.converters.collection.AbstractCollectionConverter.writeCompleteItem(Object, MarshallingContext, HierarchicalStreamWriter).

  • Deprecated c.t.x.converters.collection.AbstractCollectionConverter.writeItem(Object, MarshallingContext, HierarchicalStreamWriter).

  • Added c.t.x.converters.collection.AbstractCollectionConverter.writeNullItem(MarshallingContext, HierarchicalStreamWriter).

  • Added c.t.x.converters.extended.EncodedByteArrayConverter(StingCodec).

  • Added c.t.x.converters.extended.NamedCollectionConverter.readBareItem(HierarchicalStreamReader, UnmarshallingContext, Object).

  • Deprecated c.t.x.converters.extended.NamedCollectionConverter.readItem(HierarchicalStreamReader, UnmarshallingContext, Object).

  • Added c.t.x.converters.extended.NamedCollectionConverter.writeCompleteItem(Object, MarshallingContext, HierarchicalStreamWriter).

  • Deprecated c.t.x.converters.extended.NamedCollectionConverter.writeItem(Object, MarshallingContext, HierarchicalStreamWriter).

  • Added c.t.x.core.DefaultConverterLookup(Map).

  • Added c.t.x.core.util.JVM.getBase64Codec().

  • Added c.t.x.core.util.JVM.isVersion().

  • Deprecated c.t.x.core.util.JVM.is18().

  • Deprecated c.t.x.core.util.JVM.is9().

  • Deprecated c.t.x.io.ExtendedHierarchicalStreamReader.

  • Deprecated c.t.x.io.ExtendedHierarchicalStreamWriter.

  • Deprecated c.t.x.io.ExtendedHierarchicalStreamWriterHelper.

  • Deprecated c.t.x.io.xml.BEAStaxDriver.

  • Added c.t.x.io.xml.Dom4JReader.Dom4JReader(Branch).

  • Added c.t.x.io.xml.XppDriver.createDefaultParser().

  • Added c.t.x.core.util.StingCodec.

下载地址:

http://x-stream.github.io/download.html


【声明】文章转载自:开源中国社区 [http://www.oschina.net]


以上所述就是小编给大家介绍的《XStream 1.4.11 发布,Java 对象和 XML 相互转换的工具》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

网站重构(第3版)

网站重构(第3版)

[美] Jeffrey Zeldman、[美] Ethan Marcotte / 傅捷、祝军、李宏 / 电子工业出版社 / 2011-3 / 59.00元

《网站重构:应用Web标准进行设计(第3版)》内容简介:畅销书作家、设计师、网页标准教父jeffrey zeldman再次更新了他经典的、颠覆行业的指南书。这已经是《网站重构:应用Web标准进行设计(第3版)》的第3版了,此次更新基本涵盖了随着环境和技术的变化,web标准所面临的挑战以及因此而发生的改善。第3版让基于标准的设计思想更加清晰,更加易于理解,帮助你在这个领域中保持聪明和领先。 ......一起来看看 《网站重构(第3版)》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器