dev@jax-ws.java.net

Re: implementing XMLStreamReaderEx.getPCData

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Thu, 09 Feb 2006 18:38:34 +0100

Vivek Pandey wrote:
>> I am missing the bigger picture here so I do not understand why you
>> need to buffer the XML attachment part.
>>
> No it doesnt. I am doing pretty much what you mentioned below -
> MtomStreamReader delegates XMLStreamReaderImpl for this purpose. I think
> I can just delegate getPCData() call to XMLStreamReader.getText() and if
> xop reference then dereference it.
>

Is not not the other way around?

The adapted getText can delegate to getPCData to obtain the CharSequence
and then obtain the base64 encoded octets as a char array.

If the underlying reader is at a xop:Include the adapted state is TEXT
and the MTOM reader can obtain the reference (store it in preparation
for when/if getPCData or getText is called) and move to the end element
of xop:Include (in preparation for the next state).

Paul.

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109