J2ME - (serializing?) object

B

Bla

Hi,
I've got an object of my own class and I want to send it through bluetooth
and recreate it on "the other side". The problem is that I can't find a way
to do it. Serializable interface does not exist and I also can't find a way
to make a Stream from it. I know this question may sound stupid, but how do
I send/receive a custom object through bluetooth in J2ME ?
Regards,
Luke
 
L

Lothar Kimmeringer

Bla said:
I've got an object of my own class and I want to send it through bluetooth
and recreate it on "the other side". The problem is that I can't find a way
to do it. Serializable interface does not exist and I also can't find a way
to make a Stream from it. I know this question may sound stupid, but how do
I send/receive a custom object through bluetooth in J2ME ?

DataOutputStream exist, but you have to write your own methods
for serialization/deserualization. You can have a look at the
externalizable-interface how it might work, just with a
DataOutputStream and InputStream instead of ObjectOutputStream
and DataInputStream.


Regards, Lothar
--
Lothar Kimmeringer E-Mail: (e-mail address removed)
PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)

Always remember: The answer is forty-two, there can only be wrong
questions!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top