dev@jax-ws.java.net

Re: implementing XMLStreamReaderEx.getPCData

From: Vivek Pandey <Vivek.Pandey_at_Sun.COM>
Date: Thu, 09 Feb 2006 09:57:55 -0800

Paul Sandoz wrote:
> 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?
>
yes you are right.
> 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).
>
makes sense.

thanks,

-vivek.
> Paul.
>

-- 
Vivek Pandey
Web Services Standards and Technologies
Sun Microsystems Inc.