From: Stefan L. <li...@ap...> - 2008-07-02 12:35:46
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 +1 for plain constructor next thing i wanna talk about is naming of: serializer/deserialize (i misstyped it 2 times while writing :-) or writer/parser then we have to talk about the interfaces. i'd prefer the tmapi-utils way TopicMapSystem tmsystem; TopicMap tm = parser.parse(tmsystem, file) or mio way TopicMapSystem tmsystem; TopicMap tm = tmsystem.createTopicmap(???,???) tm = parser.parse(tm, file) while using this i did not know what to insert in ???,??? cause its overwritten by the parser, so the first way is better in my view. let the parser call createTopicMap what you thing? Lars Heuer wrote: > Hi Stefan, > >> a sounds good, but do we need an IOFactory? or let the user simple call > >> new XTM20Serializer(...) > > IMO for simplicity > > Serializer ser = new XTM20Serializer(); > > is enough. A factory would be an overkill, otherwise we could also use > MIO ;) > > Best regards, > Lars -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIa3TMbsixtqnWg1oRArnUAJ9nrllwLFNzyYILQxhdYdvdol3iqACbBc7Z WCgrZI1CO57XmRDoOsVdUxs= =vXKQ -----END PGP SIGNATURE----- |