[5127] in java-interest

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

Re: DataInputStream readLine() method

daemon@ATHENA.MIT.EDU (James Waldrop)
Mon Jan 29 20:16:18 1996

To: TWhitehill@banyan.com
cc: java-interest@java.sun.com
In-reply-to: Your message of "Mon, 29 Jan 1996 17:03:34 EST."
             <vines.J6N6+nEI1lA@ismtp.banyan.com> 
Date: Mon, 29 Jan 1996 15:57:16 -0800
From: James Waldrop <sulam@construct.net>


TWhitehill@banyan.com wrote:
>2)  When I terminate a String with a '\n' and send it from my server via 
>DataOutputStream's writeChars() method my applet which 
>receives with DataInputStream's readLine() method does nothing.  When the 
>applet receives the data with readChar() in a loop the String is correctly 
>received (with or without the '\n').   Any ideas?

I'm doing something similar (sending text in a TextField to a server
down a DataOutputStream), and had to use WriteBytes.  I believe this
may be have something to do with the fact that a character in Java is
2 bytes (i.e, Unicode).

James

--
James Waldrop                        /          Technical Director
sulam@construct.net              /              Construct Internet Design
sulam@well.com               /                  http://www.construct.net
-
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