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

Reply via email to