
Signature
Unemployed English Java programmer
http://jroller.com/page/tackline/
So we must convert all these int (4 bytes), double (8 bytes), long (8
bytes) to byte[] arrays? Sounds not like a decent idea.......
How about to use the java.io.DataInputStream? I heard it may not have
good performance.
By the way, for RecordStore, is the get record by ID a "random access"
to the underlying file? Will the system hold all the records in memory?
Thanks all. :-)
> > I am pretty new to J2ME, can anyone give some hits of the good ways to
> > save / load data on these mobile devices using J2ME? Thanks a lot.
[quoted text clipped - 18 lines]
> Unemployed English Java programmer
> http://jroller.com/page/tackline/
AlecB - 07 Jul 2006 00:25 GMT
>>> I am pretty new to J2ME, can anyone give some hits of the good ways to
>>> save / load data on these mobile devices using J2ME? Thanks a lot.
[quoted text clipped - 28 lines]
>
> Thanks all. :-)
IFYP.
The recordstore can be accessed randomly. Be careful though, if you
perform deletes, the id of the first record will not be 1, which means
using a recordstore enumeration.
Data(In|Out)putStreams are very slow on certain devices. I recommend
only using them when you absolutely have to. you can usually do the
conversion yourself.
Regards,
Alec
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?