cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sberyoz...@gmail.com>
Subject How to optimize JAXP Source reads
Date Thu, 03 Feb 2011 22:08:10 GMT
Hi

I'm looking at the XMLStreamDataReader in the SourceDataBinding and trying
to figure out what I can 'borrow' :-) from that code
to have the JAX-RS SourceProvider optimized.

The XMLStreamDataReader calls a resetForStreaming(XMLStreamReader) function,
when StaxSource or SAXSource is expected which seems like the key piece of
the optimization.

What exactly does it do and would it make sense to consider reusing that
code in the non-SOAP case, where we don't have wrapping tags like
soap:env and soap:body to deal with ?

It seems the best I can do in the plain XML case is to create the
XMLStreamReader from the InputStream...

Cheers, Sergey

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message