From: Lars H. <he...@se...> - 2008-07-02 14:14:38
|
[...] >> TopicMapSystem tmsystem; >> TopicMap tm = parser.parse(tmsystem, file) >> or mio way >> TopicMapSystem tmsystem; >> TopicMap tm = tmsystem.createTopicmap(???,???) >> tm = parser.parse(tm, file) [...] > The latter style allows the user to create a topic map and then [...] ... and the latter style wouldn't make the first style impossible. We can create a TopicMapImportUtil (cannot come up with a better name), which takes a TopicMapSystem, a deserializer and a File / Stream and it creates the topic map and imports the content from the source and returns that filled topic map. Not sure if that is necessary, though. Best regards, Lars -- Semagia <http://www.semagia.com> |