[2312] in java-interest

home help back first fref pref prev next nref lref last post

Re: Socket Communication

daemon@ATHENA.MIT.EDU (Thomas Ball)
Fri Sep 29 07:55:16 1995

Date: Wed, 27 Sep 1995 18:11:09 -0700
From: Thomas.Ball@Eng.Sun.COM (Thomas Ball)
To: jones@iwn.com
Cc: java-interest@java.Eng.Sun.COM

The easiest way to transfer strings via a socket connection is to 
use the readUTF and writeUTF routines in DataInputStream and
DataOutputStream respectively.  There are corresponding routines for
the other primitive types in these classes as well.

Tom

>  From daemon@java  Wed Sep 27 17:56:46 1995
>  To: "'Javs Interest Mailing List'" <java-interest@java>
>  Subject: Socket Communication
>  Mime-Version: 1.0
>  Content-Transfer-Encoding: quoted-printable
>  X-Info: To unsubscribe, send 'unsubscribe' to java-interest-request@java.sun.com
>  
>  
>  The API for the sockets shows all communications using byte arrays. I need tp transmit and receive strings. Is there a way to convert a string object to a byte array??
>  
>  joe
>  
>  -
>  Note to Sun employees: this is an EXTERNAL mailing list!
>  Info: send 'help' to java-interest-request@java.sun.com
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post