Woodstox 3.9.2 released: first sliver of Typed Access API included!

View: New views
1 Messages — Rating Filter:   Alert me  

Woodstox 3.9.2 released: first sliver of Typed Access API included!

by Tatu Saloranta-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Finally, after couple of months of on-and-off work, I got far enough
with the Typed Access API (see org.codehaus.stax2.typed.* for more
info) implementation complete enough that I felt comfortable cutting
another pre-4.0 release.
Although only 3 simple types (boolean, int, long) are supported, they
work end-to-end, for both attributes and elements, for stream readers
and writers, and all variations (including DOM-wrapping variants).
There are also basic unit tests so that things should actually work
right at release. :-)

Limited amount of testing I did indicated that beyond obvious
convenience factor there is actually reasonably sizable performance
benefits, at least for element accessors (attribute access was quite
fast, and less can be done to improve it). It would be sweet if this
would prove useful for libraries like object/xml data binding or such.
It should also help with simple hand-mapped systems.
So please let me know how things work if you end up playing with this new API.

In addition to thanks to all users, I would also like to give special
thanks to Santiago, who scoped out the core Typed Access API classes
(TypedXMLStreamReader, TypedXMLStreamWriter; which as of now extend
XMLStreamReader/Writer, and are extended by Stax2
XMLStreamReader2/Writer2). Although this first installment only
contains subset of all scoped methods (rest are commented out for now,
check sources to see what all is planned), rest will follow soon (?).

-+ Tatu +-

ps. As with 3.2.5, there are also other interoperability improvements
that should specifically help with JAXB 2 (including versions bundled
with JDK 6).

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


LightInTheBox - Buy quality products at wholesale price!