[Simple-support] Serializing into 2 similar classes with different names
Brought to you by:
niallg
|
From: Artur T <at....@gm...> - 2011-06-09 23:23:20
|
Hi, I'm trying to deserialize an object that contains Vector2f (a compiled class object from a Java game development framework). However, the object was serialized by another framework (for .NET) which deals with the same data type but defines it as Vector2... I don't have the option of altering the files native to either individual frameworks. What can I do to be able to interpret the Vector2 field for the Vector2f variable. Also, I just realized, since I cannot modify the Vector2f class, I cannot add the @Element identifier, does that mean that it won't serialize even if it's part of the classes that I am serializing? Your help is greatly appreciated. Thanks, Artur |