[Simple-support] Deserialize only parts of a xml file
Brought to you by:
niallg
|
From: Timo R. <cr...@ol...> - 2009-04-18 23:13:48
|
Hello Simple users (and dev :), I'm faced with a (so I think) very common problem with a large number of serialized objects. I have to list all those objects in a JTable, with a few columns only showing some attributes of the serialized objects (let's say a name, a date and an ID). Now the first and easiest way is, just iteratate over all serialized xml files, deserialize each of them, get the needed attributes (name, date and ID) and create a table entry for it, then go on with the next xml file. Since the xml files each contains a lot more data than just name/date/ID, deserializing each of them is not memory efficient nor performant. What I need is some kind of streaming/parsing technology. So my question is, can I use the Simple Framework to do this, or can Simple only be used to fully deserialize an object? If Simple can't help me here, can you suggest another framework (I'm working with Java 6) to achieve my goal? Thanks a lot for your help! Regards, Timo |