Hi,

On 10.03.2010 16:08, scott wrote:

Hello:

I've been trying to work out how to select given event types in an xml file
and selectively Unmarshal them into objects.
Just to understand this fully: you are interested in partial unmarshalling, right ?

> I've noticed the unmarshaller
method that accepts the SAX2EventProducer and considered that as a potential
entry point for my code.   Can someone explain the use case behind this
method?
This will allow anybody to feed SAX events into Castor to trigger unmarshalling.

It appears to accept a handler, but when the method is called in
the UnMarshaller an UnMarhalHandler is called that is declared as a final
class, preventing any extension of this class.  What's the intended use?
Yes, this is final as we don't want you to modify our internal UnmarshalHandler class. But given that you are in control of the SAX2EventProducer, I cannot really see your problem. Simply use your custom SAX2EventProducer to feed any (valid) SAX evnets into Castor.

Regards
Werner


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

   http://xircles.codehaus.org/manage_email


Reply via email to