Serializing Arrays or Vectors?
Clemens Eisserer <[email protected]> Thu, 04 Mar 2004 18:20:01 +0100
| Newsgroups | gmane.comp.java.enhydra.ksoap |
|---|---|
| Message-ID | <[email protected]> |
Hello! kSOAP is really cool and especally the self-made serilization makes the=20 whole process much easier und more flexible than hardcoding the whole=20 stuff like I do now. Currently my Objekts have a Constructor with a XMLElement as paramater.=20 With the values stored in this element the object is created. Really ugly= ... However currently I dont have problems if I=B4ve "methods" that return=20 multiple things even if I exactly know how much. I simply run a loop as=20 long as there are no xml-elements left in stream and add each object to=20 a vector. Can I emulate this behaviour somehow in kSOAP? The only idea I have is=20 to submit a single object with a string in it. Out of this string I=20 could generate my objects. This would work, but I belive this is really=20 bad for performance. lg Clemens PS: Under J2SE creating a String out of a StringBuffer or vice versa=20 doesn't allocate new memory for the content as long as you don't change=20 the content of one of the two corresponding objects. Is this also true for J2ME, how doesn this affect to jSOAP if I create=20 my objects like explained above? (I plan to use 1.2 because I really=20 need a stable and reliable enviroment and 2.0 seems a little bit two=20 experimental for my needs) PS2: Thanks a lot for all the help and of course the software itself. It=20 makes live so much easier!