Solved

HOW C++ de-serialize a java object??????????

Posted on 2000-04-04
2
203 Views
Last Modified: 2008-02-26
Hi,

Java Program serialize an object and send it to a C++ program throught socket. C++ program pick up the object, but how C++ "de-serialize" a java serialized object? If this is possible, please send me detail info. Thanks.

stephen
0
Comment
Question by:zollenkong
  • 2
2 Comments
 
LVL 2

Accepted Solution

by:
azawawi earned 50 total points
ID: 2684393
Hi zollenkong,

I have done some research on the subject (since last time). I think you can implement a C++ de-serializer after reading "Java Object Serialization Specification" (available at www.javasoft).

The most interesting part for you is "Chapter 6: Object Serialization Stream Protocol" found at

http://java.sun.com/products/jdk/1.3/docs/guide/serialization/spec/protocol.doc.html

I also found in the same chapter
"6.4.1 Rules of the Grammar"
and
"6.4.2 Terminal Symbols and Constants"

bingo!

to be of value in reading a serialized objects stream.

Let me know your progress.
(Hope that helps you in your quest)
0
 
LVL 2

Expert Comment

by:azawawi
ID: 2684974
thanks!
keep me posted please...
im interested in this subject :)
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question