read / write Java object stream format?

Discussion in 'Perl Misc' started by Larry, Mar 9, 2006.

  1. Larry

    Larry Guest

    Is there any module / technique for reading / writing Java object
    stream format? I looked on CPAN and there didn't seem to be anything
    like that.

    What I am trying to do is mimic part of the functionality of a certain
    Java appplet which I have looked at with a protocol analyzer. I see
    that it is sending some binary data which I suspect is in object stream
    format (i.e. generated with Object.writeObject in Java). I would like
    to look at what's in there so I can have my Perl script take the place
    of the applet.

    Just the type of task that Perl was made for :)
    Larry, Mar 9, 2006
    #1
    1. Advertising

  2. Larry wrote:
    > Is there any module / technique for reading / writing Java object
    > stream format? I looked on CPAN and there didn't seem to be anything
    > like that.
    >
    > What I am trying to do is mimic part of the functionality of a certain
    > Java appplet which I have looked at with a protocol analyzer. I see
    > that it is sending some binary data which I suspect is in object stream
    > format (i.e. generated with Object.writeObject in Java). I would like
    > to look at what's in there so I can have my Perl script take the place
    > of the applet.
    >
    > Just the type of task that Perl was made for :)
    >


    This isn't the solution you have asked for, but you could try
    deserializing the stream using java, and then writing the deserialized
    object back to disk as YAML. Check out JYaml for a Java YAML library.
    Perl could then read the YAML back from disk.

    Mark
    Mark Clements, Mar 14, 2006
    #2
    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. Larry

    object stream format

    Larry, Mar 9, 2006, in forum: Java
    Replies:
    8
    Views:
    2,505
    Timo Stamm
    Mar 12, 2006
  2. Rafal 'Raf256' Maj

    read/write stream - parsing

    Rafal 'Raf256' Maj, Dec 20, 2004, in forum: C++
    Replies:
    5
    Views:
    506
    Jeff Flinn
    Dec 20, 2004
  3. Deep
    Replies:
    6
    Views:
    473
    Nick Keighley
    Feb 28, 2007
  4. vishnu
    Replies:
    0
    Views:
    2,204
    vishnu
    Dec 14, 2007
  5. sahm
    Replies:
    4
    Views:
    673
Loading...

Share This Page