Article View: borland.public.jbuilder.java.language
Article #19526Re: Net transfer of native data types
From: Brian Burton
Date: Mon, 19 Jan 1998 00:00
Date: Mon, 19 Jan 1998 00:00
31 lines
1518 bytes
1518 bytes
Read the documentation for java.io.ObjectOutputStream. ++Brian Shahed Ali wrote: > > I had written a function in delphi which would transfer > int/byte/long/string data across > a network, by taking the address of the variable which held the data, and > transferring the content of memory from that address ownwards for the > number of bytes that > were required to transfer the data type. > > Any ideas on how I may do this in Java ? > > I am currently using writeInt , writeLong etc etc. But I have to write a > seprate function to transfer > each data type. > > Any ideas on how to do this more elegantly ?? > > PS. I can only use sockets, and RMI / CORBA etc are out of the question. > > Regards > Shahed. -- Brian Burton Custom Software Development Burton Computer Corporation Java, C++, Orbix, Tuxedo http://www.burton-computer.com OO Consulting and Mentoring
Technical Details
Message-ID:
<34C3F755.3612354E@burton-computer.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<01bd1a99$1b2e9cc0$0de3aac2@GIT07.al-rostamani.co.ae>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,377a67f7e75051dc X-Google-Attributes: gidf74b3,public From: Brian Burton <brian.burton@burton-computer.com> Subject: Re: Net transfer of native data types Date: 1998/01/19 Message-ID: <34C3F755.3612354E@burton-computer.com> X-Deja-AN: 317520326 Content-Transfer-Encoding: 7bit References: <01bd1a99$1b2e9cc0$0de3aac2@GIT07.al-rostamani.co.ae> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Burton Computer Corporation Newsgroups: borland.public.jbuilder.java.language