[Simple-support] Replacing an object at write-time
Brought to you by:
niallg
|
From: Shevek <sh...@an...> - 2011-11-29 02:41:27
|
Hi, I have a CustomArrayList which I would like to annotate in such a way that it gets replaced with a vanilla ArrayList in the serialized data. While the documentation refers to writeReplace() and shows an example of readResolve(), I cannot see an example of an equivalent of writeReplace, nor can I see how to do it without (e.g.) writing a Visitor or Converter or something to do heavy duty XML hackery on the OutputNode. Is there a simple answer, please? Thank you. S. |