Need some help porting from C#

A

Andy

HI,

I'm trying to port some code from C# to Java. The C# code uses a <a
href="http://msdn2.microsoft.com/en-us/library/
system.runtime.serialization.formatters.binary.binaryformatter(VS.
85).aspx">BinaryFormatter</a> class to serialize the object or graph
to a binary representation. What would be the class equivalent in
Java?

Thanks
Andy
 
A

Arne Vajhøj

Andy said:
I'm trying to port some code from C# to Java. The C# code uses a <a
href="http://msdn2.microsoft.com/en-us/library/
system.runtime.serialization.formatters.binary.binaryformatter(VS.
85).aspx">BinaryFormatter</a> class to serialize the object or graph
to a binary representation. What would be the class equivalent in
Java?

ObjectOutputStream and ObjectInputStream.

Arne
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top