Hi,

I have plenty of data (joda DateTime objects) serialized with default 
(ReflectionConverter) now I'd like to simplify serialization and created my own 
Converter for these  objects.
The issue is I'd like to have possibility to support both versions at the same 
time as there is no possibility to convert already exiting records.
What I'm trying to do is simply create new converter that will work more or 
less like following:

Try to unmarshall in new version
If failed
                Do something to call another converter (in my case Reflection 
Converter)???

Is there possibility to manage above with existing XStream API? I mean is there 
any way like throwing some exception to call alternative converter once 
previous failed, or should I register converters in some specific way?
How to get access to one converter from another? How to reset the reader to 
point the same element as it was primary called with (once data read multiple 
times moveDown/moveUp etc. and then  failed)?
Thanks for your help in advance.


Best regards,
Pawel



Reply via email to