Need some help porting from C#

Discussion in 'Java' started by Andy, Jan 16, 2008.

  1. Andy

    Andy Guest

    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
    Andy, Jan 16, 2008
    #1
    1. Advertising

  2. Andy

    Roedy Green Guest

    On Wed, 16 Jan 2008 11:38:24 -0800 (PST), Andy <>
    wrote, quoted or indirectly quoted someone who 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?


    see http://mindprod.com/jgloss/serialization.html
    --
    Roedy Green, Canadian Mind Products
    The Java Glossary, http://mindprod.com
    Roedy Green, Jan 16, 2008
    #2
    1. Advertising

  3. Andy

    Arne Vajhøj Guest

    Andy wrote:
    > 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
    Arne Vajhøj, Jan 17, 2008
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Guest
    Replies:
    0
    Views:
    662
    Guest
    Feb 25, 2004
  2. Andy
    Replies:
    4
    Views:
    313
  3. jpw
    Replies:
    1
    Views:
    354
    Gabriel Genellina
    Feb 5, 2008
  4. Frank Steinmetzger
    Replies:
    2
    Views:
    351
    Frank Steinmetzger
    Mar 29, 2008
  5. kj
    Replies:
    10
    Views:
    444
Loading...

Share This Page