[3319] in java-interest

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

Re: text in beta-client

daemon@ATHENA.MIT.EDU (Arthur van Hoff)
Tue Nov 7 16:22:22 1995

Date: Tue, 7 Nov 1995 09:34:14 -0800
From: Arthur.Vanhoff@Eng.Sun.COM (Arthur van Hoff)
To: tim@innet.be
Cc: java-interest@java.Eng.Sun.COM


Hi Tim,

> I wrote a beta client and beta server.
> I can sent numbers, but I don`t know how to sent strings. Am I wrong when I 
think that I have to sent the string in bytes ? I did so, but how can I decode 
my byte-code at serverside to a string again ??
> I hope someone can help me....

Try wrapping a DataInputStream and DataOutputStream around the input and
output streams that you are using. If you do that you can use readUTF()
and writeUTF() to read and write unicode strings.

Have fun,

	Arthur van Hoff
	
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

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